spec/lib/moneta/api/service_spec.rb in moneta-api-1.0.1 vs spec/lib/moneta/api/service_spec.rb in moneta-api-1.0.2
- old
+ new
@@ -19,6 +19,10 @@
let(:params) { {} }
it { is_expected.to eq 'https://www.moneta.ru/services.wsdl' }
end
end
+
+ describe 'request validate' do
+ it { expect { service.authorise_transaction('invalid request') }.to raise_exception(TypeError, "String can't be coerced into Moneta::Api::Requests::AuthoriseTransactionRequest") }
+ end
end