File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 95
95
expect ( retry_block_times_called ) . to eq ( 2 )
96
96
end
97
97
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 }
104
104
end
105
105
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 }
108
108
end
109
109
end
110
110
end
You can’t perform that action at this time.
0 commit comments