Skip to content

Commit

Permalink
fixed typo + added a committee member check
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis committed Jul 15, 2024
1 parent a48a641 commit 2b92486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/controllers/gem_records_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class GemRecordsControllerTest < ActionController::TestCase
assert_template 'index', 'Index template should be displayed'
end

should 'committee members included in gem records'
should 'committee members included in gem records' do
gem_records = create_list(:gem_record, 5, eventtype: GemRecord::PHD_EXAM)
gem_records.each do |record|
create_list(:committee_member, 2, gem_record: record)
Expand Down
8 changes: 5 additions & 3 deletions test/system/students_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ class StudentsTest < ApplicationSystemTestCase
click_link(@gem_record.studentname)

assert_selector "h6", text: "Committee Members"
@gem_record.committee_members.each do |committee_member|
assert_selector "p", text: committee_member.full_name
end
if @gem_record.committee_members.count > 1
@gem_record.committee_members.each do |committee_member|
assert_selector "p", text: committee_member.full_name
end
end

end

Expand Down

0 comments on commit 2b92486

Please sign in to comment.