Skip to content

Commit

Permalink
Update tests for new Pusher live_time notifications format.
Browse files Browse the repository at this point in the history
  • Loading branch information
moveson committed Feb 19, 2018
1 parent c7c2337 commit 8ee7bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/api/v1/event_groups_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
it 'sends a push notification that includes the count of available times' do
allow(Pusher).to receive(:trigger)
get :trigger_live_times_push, params: request_params
expected_args = ["live-times-available.event_group.#{event_group.id}", 'update', {count: 3}]
expected_args = ["live-times-available.event_group.#{event_group.id}", 'update', {unconsidered: 3, unmatched: 3}]
expect(Pusher).to have_received(:trigger).with(*expected_args)
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/api/v1/events_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
expect(event.permit_notifications?).to be(true)
allow(Pusher).to receive(:trigger)
post :import, params: request_params
expected_args = ["live-times-available.event_group.#{event_group.id}", 'update', {count: 2}]
expected_args = ["live-times-available.event_group.#{event_group.id}", 'update', {unconsidered: 2, unmatched: 2}]
expect(Pusher).to have_received(:trigger).with(*expected_args)
end
end
Expand Down

0 comments on commit 8ee7bf7

Please sign in to comment.