Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
spec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartes committed Jan 20, 2021
1 parent e355fac commit 1587008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/castle/middleware_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
allow(api).to receive(:track).and_raise(::Castle::Error)
allow(described_class.instance).to receive(:call_error_handler)

described_class.instance.track({}, {})
described_class.instance.track({})
end

it { expect(described_class.instance).to have_received(:call_error_handler).once }
Expand All @@ -57,7 +57,7 @@
context 'when request does not raise an exception' do
before do
allow(described_class.instance).to receive(:call_error_handler)
described_class.instance.track({}, {})
described_class.instance.track({})
end

it { expect(described_class.instance).not_to have_received(:call_error_handler) }
Expand Down

0 comments on commit 1587008

Please sign in to comment.