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

pulibrary / tigerdata-app / b6e4a7c7-d411-4822-a760-84eba5096a52

01 Dec 2025 03:02PM UTC coverage: 74.875% (-12.7%) from 87.594%
b6e4a7c7-d411-4822-a760-84eba5096a52

Pull #2251

circleci

carolyncole
Updating the department select to utilize LuxInputMultiSelect
The component only allows an item to be selected once (only for non asynch results which departments are).
fiexs #2134
Pull Request #2251: Updating the department select to utilize LuxInputMultiSelect

2390 of 3192 relevant lines covered (74.87%)

215.79 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
2✔
3
  attr_accessor :id, :label
2✔
4

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

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

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