Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWalkingLeek committed Dec 23, 2024
1 parent e79d13c commit e7fd531
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/helpers/sac_cas/event/participation_buttons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions spec/controllers/event/application_market_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions spec/controllers/event/participations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7fd531

Please sign in to comment.