Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesluedke committed Sep 18, 2023
1 parent 6225d6d commit 829a1f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions spec/ears/consumer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
let(:payload) { 'my payload' }

before do
allow(channel).to receive(:generate_consumer_tag).and_return('test')
allow(channel).to receive(:number).and_return(1)
allow(channel).to receive_messages(generate_consumer_tag: 'test', number: 1)
allow(channel).to receive(:ack).with(delivery_tag, false)
end

Expand Down
3 changes: 1 addition & 2 deletions spec/ears/setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
let(:queue) { instance_double(Bunny::Queue, name: 'queue', options: {}) }

before do
allow(Ears).to receive(:connection).and_return(connection)
allow(connection).to receive(:create_channel).and_return(channel)
allow(Ears).to receive(:channel).and_return(channel)
allow(Ears).to receive_messages(connection: connection, channel: channel)
allow(channel).to receive(:prefetch)
allow(channel).to receive(:on_uncaught_exception)
allow(Bunny::Queue).to receive(:new).and_return(queue)
Expand Down

0 comments on commit 829a1f1

Please sign in to comment.