Skip to content

Commit 9836e9c

Browse files
authored
Merge pull request #356 from hitobito/bug/fix-ci-fails
feature/fix-ci-fails
2 parents 3371937 + 9c649b6 commit 9836e9c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/controllers/events_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def fill_in_required_columns(event)
215215

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

spec/mailers/event/camp_mailer_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
subject { mail }
156156
its(:subject) { should eq 'Einreichung Lager' }
157157
its(:to) { should eq ['lager@pbs.ch'] }
158-
its(:cc) { should eq [coach.email, abteilungsleitung.email, leader.email] }
158+
its(:cc) { should match_array [coach.email, abteilungsleitung.email, leader.email] }
159159
its(:from) { should eq ['noreply@localhost'] }
160160
end
161161

@@ -164,7 +164,7 @@
164164
subject { mail }
165165
its(:subject) { should eq 'Einreichung Lager' }
166166
its(:to) { should eq ['lager@pbs.ch', 'auslandlager@pbs.ch'] }
167-
its(:cc) { should eq [coach.email, abteilungsleitung.email, leader.email] }
167+
its(:cc) { should match_array [coach.email, abteilungsleitung.email, leader.email] }
168168
its(:from) { should eq ['noreply@localhost'] }
169169
end
170170
end

spec/regressions/events_controller_camp_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def assert_advisor(advisor_key, text, warning)
169169
context key do
170170
it 'is marked as unassigned if advisor not set' do
171171
camp.participations.destroy_all
172-
assert_advisor(key, 'Niemand zugeordnet', true)
172+
assert_advisor(key, 'Niemand zugeordnetKeine Leitenden erfasst', true)
173173
end
174174

175175
it 'is marked as assigned if advisor set' do

0 commit comments

Comments
 (0)