• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / e88bda7b-d38c-474f-879a-7b040e202955

24 Sep 2025 09:48PM UTC coverage: 89.197% (+0.06%) from 89.139%
e88bda7b-d38c-474f-879a-7b040e202955

push

circleci

web-flow
Handle mediaflux session errors in request controller (#1892)

* Handle mediaflux session errors in request controller

* Catch ProjectCreateErrors

* typo

* minimizing the change

* linting

* testing rescue block

* Create request controller spec
update user factory
updated the rescue in the request controller
remove outdated request spec

* return real netid for project sponsor/manager

4 of 8 new or added lines in 1 file covered. (50.0%)

3 existing lines in 3 files now uncovered.

2609 of 2925 relevant lines covered (89.2%)

339.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/app/models/user_request.rb
1
# frozen_string_literal: true
2
class UserRequest < ApplicationRecord
1✔
3
  belongs_to :user
1✔
4
  belongs_to :project
1✔
5

6
  PENDING = "pending"
1✔
7
  COMPLETED = "completed"
1✔
8
  STALE = "stale"
1✔
9
  FAILED = "failed"
1✔
10

11
  validates :state, inclusion: { in: [PENDING, COMPLETED, STALE, FAILED] }
1✔
12

13
  def complete?
1✔
14
    state == COMPLETED
2✔
15
  end
16

17
  def failed?
1✔
UNCOV
18
    state == FAILED
×
19
  end
20
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc