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

pulibrary / tigerdata-app / 26be0c19-ba67-4899-969e-2e759b058146

24 Sep 2025 03:58PM UTC coverage: 89.216% (+0.08%) from 89.139%
26be0c19-ba67-4899-969e-2e759b058146

Pull #1894

circleci

carolyncole
Allow User request to fail
Display a failed download differntly from a completed download
Pull Request #1894: Allow User request to fail

31 of 32 new or added lines in 3 files covered. (96.88%)

2606 of 2921 relevant lines covered (89.22%)

362.1 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✔
NEW
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