spec/lib/moneta/api/service_spec.rb in moneta-api-1.3.0 vs spec/lib/moneta/api/service_spec.rb in moneta-api-1.4.0
- old
+ new
@@ -14,9 +14,15 @@
context 'when soap raise error' do
let(:account_id) { -1 }
it { expect { subject }.to raise_exception(Moneta::Api::RuntimeException, '(SOAP-ENV:Client) Validation error') }
end
+
+ context 'when soap http error' do
+ let(:account_id) { -2 }
+
+ it { expect { subject }.to raise_exception(Moneta::Api::HTTPException) }
+ end
end
describe 'wsdl url' do
subject{ service.client.globals.instance_variable_get('@options')[:wsdl] }