spec/faraday/request/instrumentation_spec.rb in faraday-1.10.4 vs spec/faraday/request/instrumentation_spec.rb in faraday-2.0.0.alpha.pre.1

- old
+ new

@@ -28,16 +28,14 @@ end end it { expect(options.name).to eq('request.faraday') } it 'defaults to ActiveSupport::Notifications' do - begin - res = options.instrumenter - rescue NameError => e - expect(e.to_s).to match('ActiveSupport') - else - expect(res).to eq(ActiveSupport::Notifications) - end + res = options.instrumenter + rescue NameError => e + expect(e.to_s).to match('ActiveSupport') + else + expect(res).to eq(ActiveSupport::Notifications) end it 'instruments with default name' do expect(instrumenter.instrumentations.size).to eq(0)