Skip to content

Commit

Permalink
use hash rather than keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Mar 25, 2022
1 parent 4b43ada commit 96e66d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/bullet/notification/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def temp_env_variable(name, value)
it 'should send full_notice to notifier' do
notifier = double
allow(subject).to receive(:notifier).and_return(notifier)
allow(subject).to receive(:notification_data).and_return(foo: :bar)
expect(notifier).to receive(:inline_notify).with(foo: :bar)
allow(subject).to receive(:notification_data).and_return({ foo: :bar })
expect(notifier).to receive(:inline_notify).with({ foo: :bar })
subject.notify_inline
end
end
Expand All @@ -84,8 +84,8 @@ def temp_env_variable(name, value)
it 'should send full_out_of_channel to notifier' do
notifier = double
allow(subject).to receive(:notifier).and_return(notifier)
allow(subject).to receive(:notification_data).and_return(foo: :bar)
expect(notifier).to receive(:out_of_channel_notify).with(foo: :bar)
allow(subject).to receive(:notification_data).and_return({ foo: :bar })
expect(notifier).to receive(:out_of_channel_notify).with({ foo: :bar })
subject.notify_out_of_channel
end
end
Expand Down

0 comments on commit 96e66d1

Please sign in to comment.