spec/rest/base_client_spec.rb in finapps-2.0.3 vs spec/rest/base_client_spec.rb in finapps-2.0.4
- old
+ new
@@ -70,13 +70,10 @@
end
context 'for proxy errors' do
subject { FinApps::REST::BaseClient.new(valid_tenant_options).send_request('proxy_error', :get) }
- it do
- expect { subject.send_request(nil, :get) }
- .to raise_error(Faraday::ConnectionFailed, '407 "Proxy Authentication Required"')
- end
+ it { expect { subject }.to raise_error(Faraday::ConnectionFailed, '407 "Proxy Authentication Required"') }
end
end
context 'if a block is provided' do
it('gets executed on the response') do