Skip to content

Commit 69d1e8f

Browse files
committed
make rubocop happier in with spec code
1 parent 4fb5084 commit 69d1e8f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/faraday/retry/middleware_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@
9595
expect(retry_block_times_called).to eq(2)
9696
end
9797

98-
it "has appropriate args to retry_block" do
99-
expect(retry_block_calls.first[:exception]).to be_kind_of(Errno::ETIMEDOUT)
100-
expect(retry_block_calls.first[:options]).to be_kind_of(Faraday::Options)
101-
expect(retry_block_calls.first[:env]).to be_kind_of(Faraday::Env)
102-
expect(retry_block_calls.first[:retry_count]).to be_kind_of(Integer)
103-
expect(retry_block_calls.first[:retry_count]).to eq 0
98+
describe 'with arguments to retry_block' do
99+
it { expect(retry_block_calls.first[:exception]).to be_kind_of(Errno::ETIMEDOUT) }
100+
it { expect(retry_block_calls.first[:options]).to be_kind_of(Faraday::Options) }
101+
it { expect(retry_block_calls.first[:env]).to be_kind_of(Faraday::Env) }
102+
it { expect(retry_block_calls.first[:retry_count]).to be_kind_of(Integer) }
103+
it { expect(retry_block_calls.first[:retry_count]).to eq 0 }
104104
end
105105

106-
it "increments retry_count" do
107-
expect(retry_block_calls[1][:retry_count]).to eq 1
106+
describe 'arguments to retry_block on second call' do
107+
it { expect(retry_block_calls[1][:retry_count]).to eq 1 }
108108
end
109109
end
110110
end

0 commit comments

Comments
 (0)