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

pulibrary / tigerdata-app / a829b9c5-1dc3-477f-a44e-45890dfc33cb

24 Nov 2025 02:38PM UTC coverage: 87.586% (-0.5%) from 88.064%
a829b9c5-1dc3-477f-a44e-45890dfc33cb

Pull #2235

circleci

carolyncole
Do not redirect from home page when login is disabled
fixes #2188
Pull Request #2235: Do not redirect from home page when login is disabled

1 of 5 new or added lines in 2 files covered. (20.0%)

794 existing lines in 37 files now uncovered.

2787 of 3182 relevant lines covered (87.59%)

361.47 hits per line

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

100.0
/app/models/project_purpose.rb
1
# frozen_string_literal: true
2
class ProjectPurpose
4✔
3
  attr_accessor :id, :label
4✔
4

5
  def initialize(id, label)
4✔
6
    @id = id
30✔
7
    @label = label
30✔
8
  end
9

10
  def self.all
4✔
11
    research = ProjectPurpose.new("research", "Research")
10✔
12
    admin = ProjectPurpose.new("administrative", "Administrative")
10✔
13
    teaching = ProjectPurpose.new("teaching", "Teaching")
10✔
14
    [research, admin, teaching]
10✔
15
  end
16

17
  # Returns the label for a given purpose id
18
  def self.label_for(id)
4✔
UNCOV
19
    all.each do |purpose|
4✔
UNCOV
20
      return purpose.label if purpose.id == id
12✔
21
    end
UNCOV
22
    id
4✔
23
  end
24
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