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

curationexperts / laevigata / bb36557b-6aa0-47ec-95b8-e9eaee81057c

04 May 2026 02:22AM UTC coverage: 97.444%. Remained the same
bb36557b-6aa0-47ec-95b8-e9eaee81057c

push

circleci

web-flow
Merge pull request #2510 from curationexperts/deactivate_depts

Display degree on Review Submissions page

2783 of 2856 relevant lines covered (97.44%)

49.81 hits per line

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

100.0
/app/validators/my_program_validator.rb
1
class MyProgramValidator < ActiveModel::Validator
4✔
2
  def validate(record)
4✔
3
    return unless record.current_tab == "My Program"
101✔
4
    fields_to_validate = ::Hyrax::EtdForm.my_program_terms - [:partnering_agency]
3✔
5
    fields_to_validate.each do |field|
3✔
6
      next if field == :subfield # Subfields are not currently required
12✔
7
      record.errors.add(field, "#{field} is required") if record.data[field.to_s].blank?
9✔
8
    end
9
  end
10
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

© 2026 Coveralls, Inc