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

pulibrary / tigerdata-app / 529f7cba-0651-41c2-9045-ff17f0a5a349

21 Oct 2025 09:43PM UTC coverage: 86.877%. Remained the same
529f7cba-0651-41c2-9045-ff17f0a5a349

Pull #2070

circleci

bess
Remove tests for special production behavior
Pull Request #2070: Remove tests for special behavior in production

2615 of 3010 relevant lines covered (86.88%)

340.18 hits per line

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

100.0
/app/presenters/user_request_presenter.rb
1
# frozen_string_literal: true
2
class UserRequestPresenter
2✔
3
  attr_reader :user_request
2✔
4

5
  delegate :request_details, :job_id, :completion_time, :expiration_date, to: :user_request
2✔
6

7
  def initialize(user_request)
2✔
8
    @user_request = user_request
9✔
9
  end
10

11
  def list_contents_url
2✔
12
    url_helpers.project_list_contents_path(user_request.project)
2✔
13
  end
14

15
  def partial_name
2✔
16
    if user_request.state == UserRequest::COMPLETED
4✔
17
      "download_item"
2✔
18
    elsif user_request.state == UserRequest::FAILED
2✔
19
      "failed_item"
2✔
20
    end
21
  end
22

23
  def title
2✔
24
    request_details["project_title"]
4✔
25
  end
26

27
  def download_link
2✔
28
    helpers.link_to(title, url_helpers.project_file_list_download_path(job_id: job_id))
2✔
29
  end
30

31
  def expiration
2✔
32
    "Expires in #{helpers.time_ago_in_words(expiration_date)}"
2✔
33
  end
34

35
  def size
2✔
36
    helpers.number_to_human_size(request_details["file_size"])
2✔
37
  end
38

39
  private
2✔
40

41
    def url_helpers
2✔
42
      Rails.application.routes.url_helpers
4✔
43
    end
44

45
    def helpers
2✔
46
      ActionController::Base.helpers
6✔
47
    end
48
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