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

curationexperts / laevigata / 464e6921-67a8-447f-9dd0-067e161e62fa

18 Apr 2026 09:18PM UTC coverage: 94.351% (-3.1%) from 97.462%
464e6921-67a8-447f-9dd0-067e161e62fa

push

circleci

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

[MAINTENANCE] Increase test coverage for workflow CommentNotifications

2706 of 2868 relevant lines covered (94.35%)

38.15 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
3✔
2
  def validate(record)
3✔
3
    return unless current_tab?(record)
21✔
4
    fields_to_validate = ::Hyrax::EtdForm.my_program_terms - [:partnering_agency]
1✔
5
    fields_to_validate.each do |field|
1✔
6
      # TODO: confirm whether subfields are never required by Emory
7
      next if field == :subfield
4✔
8
      record.errors.add(field, "#{field} is required") if parsed_data(record)[field.to_s].blank?
3✔
9
    end
10
  end
11

12
  def parsed_data(record)
3✔
13
    return {} unless record.data
24✔
14
    JSON.parse(record.data)
19✔
15
  end
16

17
  def current_tab?(record)
3✔
18
    parsed_data(record)['currentTab'] == "My Program"
21✔
19
  end
20
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