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

pulibrary / tigerdata-app / 47f8b36e-6cbd-422b-b67d-16bb6ff637e9

29 Oct 2025 11:56AM UTC coverage: 82.265% (-9.1%) from 91.333%
47f8b36e-6cbd-422b-b67d-16bb6ff637e9

Pull #2118

circleci

bess
Update expected version of mediaflux
Pull Request #2118: Upgrade to mediaflux_dev v0.17.0

1 of 1 new or added line in 1 file covered. (100.0%)

568 existing lines in 35 files now uncovered.

2528 of 3073 relevant lines covered (82.26%)

296.63 hits per line

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

88.89
/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✔
5
    affiliations = CSV.read(file, headers: true, skip_lines: /^JT_CF.*/)
32✔
6
    affiliations.each do |data|
32✔
7
      code = data["Dept"]
160✔
8
      if Affiliation.where(code: ).count == 0
160✔
9
        self.create(code: code, name: data["Department Descr"])
160✔
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
×
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