diff --git a/app/helpers/sac_cas/event/participation_buttons.rb b/app/helpers/sac_cas/event/participation_buttons.rb index 8cffa5734..444ebf4f1 100644 --- a/app/helpers/sac_cas/event/participation_buttons.rb +++ b/app/helpers/sac_cas/event/participation_buttons.rb @@ -30,7 +30,7 @@ def build_button(to_state) def build_assign_button path = :assign_group_event_participation - action_button(label(:assign), path, :tag, method: :put, data: { confirm: t(".assign_confirm") }) + action_button(label(:assign), path, :tag, method: :put, data: {confirm: t(".assign_confirm")}) end def build_cancel_button diff --git a/spec/controllers/event/application_market_controller_spec.rb b/spec/controllers/event/application_market_controller_spec.rb index 0d7f0e247..fb334d345 100644 --- a/spec/controllers/event/application_market_controller_spec.rb +++ b/spec/controllers/event/application_market_controller_spec.rb @@ -87,9 +87,9 @@ def create_application(attrs = {}) describe "PUT #add_participant" do let(:appl_prio_1) do p = Fabricate(:event_participation, - event: event, - active: false, - application: Fabricate(:event_application, priority_1: event)) + event: event, + active: false, + application: Fabricate(:event_application, priority_1: event)) Fabricate(Event::Course::Role::Participant.name.to_sym, participation: p) p.reload end diff --git a/spec/controllers/event/participations_controller_spec.rb b/spec/controllers/event/participations_controller_spec.rb index 294343786..db1c8ad39 100644 --- a/spec/controllers/event/participations_controller_spec.rb +++ b/spec/controllers/event/participations_controller_spec.rb @@ -519,19 +519,19 @@ context "state changes" do let(:participation) { Fabricate(:event_participation, event: event) } - it 'PUT assign sets participation state to assigned and sends confirmation mail' do + it "PUT assign sets participation state to assigned and sends confirmation mail" do expect do - put :assign, - params: { - group_id: group.id, - event_id: event.id, - id: participation.id - } + put :assign, + params: { + group_id: group.id, + event_id: event.id, + id: participation.id + } end.to have_enqueued_mail(Event::ApplicationConfirmationMailer, :confirmation) participation.reload expect(participation.active).to be true - expect(participation.state).to eq 'assigned' + expect(participation.state).to eq "assigned" end end end