Skip to content

Commit

Permalink
make rubocop happier in with spec code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Jan 3, 2022
1 parent 4fb5084 commit 69d1e8f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/faraday/retry/middleware_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@
expect(retry_block_times_called).to eq(2)
end

it "has appropriate args to retry_block" do
expect(retry_block_calls.first[:exception]).to be_kind_of(Errno::ETIMEDOUT)
expect(retry_block_calls.first[:options]).to be_kind_of(Faraday::Options)
expect(retry_block_calls.first[:env]).to be_kind_of(Faraday::Env)
expect(retry_block_calls.first[:retry_count]).to be_kind_of(Integer)
expect(retry_block_calls.first[:retry_count]).to eq 0
describe 'with arguments to retry_block' do
it { expect(retry_block_calls.first[:exception]).to be_kind_of(Errno::ETIMEDOUT) }
it { expect(retry_block_calls.first[:options]).to be_kind_of(Faraday::Options) }
it { expect(retry_block_calls.first[:env]).to be_kind_of(Faraday::Env) }
it { expect(retry_block_calls.first[:retry_count]).to be_kind_of(Integer) }
it { expect(retry_block_calls.first[:retry_count]).to eq 0 }
end

it "increments retry_count" do
expect(retry_block_calls[1][:retry_count]).to eq 1
describe 'arguments to retry_block on second call' do
it { expect(retry_block_calls[1][:retry_count]).to eq 1 }
end
end
end
Expand Down

0 comments on commit 69d1e8f

Please sign in to comment.