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

pulibrary / tigerdata-app / b81985d4-b4fc-4cea-9b26-3f7023663267

01 Dec 2025 08:39PM UTC coverage: 75.991% (+4.4%) from 71.597%
b81985d4-b4fc-4cea-9b26-3f7023663267

Pull #2250

circleci

JaymeeH
linting
Pull Request #2250: Organize the submission provenance for a project

3 of 36 new or added lines in 2 files covered. (8.33%)

1079 existing lines in 42 files now uncovered.

2491 of 3278 relevant lines covered (75.99%)

251.83 hits per line

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

100.0
/app/models/affiliation.rb
1
# frozen_string_literal: true
2
class Affiliation < ApplicationRecord
3✔
3
  # Affiliation file is loaded onto the servers via pransible into the shared folder
4
  def self.load_from_file(file)
3✔
UNCOV
5
    affiliations = CSV.read(file, headers: true, skip_lines: /^JT_CF.*/)
2✔
UNCOV
6
    affiliations.each do |data|
2✔
UNCOV
7
      code = data["Dept"]
10✔
UNCOV
8
      if Affiliation.where(code: ).count == 0
10✔
UNCOV
9
        self.create(code: code, name: data["Department Descr"])
10✔
10
      end
11
    end  
12
  end
13

14
  def self.find_fuzzy_by_name(name)
3✔
UNCOV
15
    find_by(name: name) || Affiliation.where("name like '%#{name}%'").order(:code).first
25✔
16
  end
17
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