Skip to content

Commit

Permalink
Merge pull request #356 from hitobito/bug/fix-ci-fails
Browse files Browse the repository at this point in the history
feature/fix-ci-fails
  • Loading branch information
Vakmeth authored Nov 28, 2024
2 parents 3371937 + 9c649b6 commit 9836e9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/events_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def fill_in_required_columns(event)

context 'as co-leader' do
before do
Fabricate(Event::Camp::Role::AssistantLeader.name.to_sym, person: person, event: event)
Fabricate(Event::Camp::Role::AssistantLeader.name.to_sym, person: Fabricate(:person), event: event)
event.update!(coach_id: people(:al_berchtold).id, leader_id: people(:al_schekka).id)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/mailers/event/camp_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
subject { mail }
its(:subject) { should eq 'Einreichung Lager' }
its(:to) { should eq ['[email protected]'] }
its(:cc) { should eq [coach.email, abteilungsleitung.email, leader.email] }
its(:cc) { should match_array [coach.email, abteilungsleitung.email, leader.email] }
its(:from) { should eq ['noreply@localhost'] }
end

Expand All @@ -164,7 +164,7 @@
subject { mail }
its(:subject) { should eq 'Einreichung Lager' }
its(:to) { should eq ['[email protected]', '[email protected]'] }
its(:cc) { should eq [coach.email, abteilungsleitung.email, leader.email] }
its(:cc) { should match_array [coach.email, abteilungsleitung.email, leader.email] }
its(:from) { should eq ['noreply@localhost'] }
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/regressions/events_controller_camp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def assert_advisor(advisor_key, text, warning)
context key do
it 'is marked as unassigned if advisor not set' do
camp.participations.destroy_all
assert_advisor(key, 'Niemand zugeordnet', true)
assert_advisor(key, 'Niemand zugeordnetKeine Leitenden erfasst', true)
end

it 'is marked as assigned if advisor set' do
Expand Down

0 comments on commit 9836e9c

Please sign in to comment.