moneta-api 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moneta/api/runtime_exception.rb +5 -0
- data/lib/moneta/api/service_methods.rb +2 -0
- data/lib/moneta/api/version.rb +1 -1
- data/lib/moneta/api.rb +1 -0
- data/spec/lib/moneta/api/service_spec.rb +12 -2
- data/spec/vcr/moneta_api_service_find_account_by_id/when_soap_raise_error_.yml +13712 -0
- data/spec/vcr/moneta_api_service_find_account_by_id/when_success_response_account_id_.yml +13707 -0
- metadata +9 -5
- data/spec/vcr/moneta_api_service_find_account_by_id/account_id_.yml +0 -10789
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5012255105136dc8f2a655efffbc6a6ef84832a9
|
4
|
+
data.tar.gz: 740f600718fe957194fff2d74ca9c0e320d20ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7367a4b1e5a0d916cf97dba6210cf61e61b6f9cc4a0709451632972089bbd325199e730334cff8506a01807193c3c25b45fa5a9256103a51d420b0f9e42d933
|
7
|
+
data.tar.gz: ca54d82ef5ceb8e8e91f962d6357b5d1cfcb72bc546596cf884455680b04a466a155bb56ddee81d013b3cd40f1772f79258e445ace25499e19b97c6921c2870b
|
data/lib/moneta/api/version.rb
CHANGED
data/lib/moneta/api.rb
CHANGED
@@ -6,6 +6,7 @@ require 'moneta/api/service_methods'
|
|
6
6
|
require 'moneta/api/service'
|
7
7
|
require 'moneta/api/data_mapper'
|
8
8
|
require 'moneta/api/key_value_serializer'
|
9
|
+
require 'moneta/api/runtime_exception'
|
9
10
|
|
10
11
|
require 'moneta/api/types/account_access_info'
|
11
12
|
require 'moneta/api/types/account_info'
|
@@ -3,9 +3,19 @@ describe Moneta::Api::Service do
|
|
3
3
|
let(:service) { described_class.new($username, $password, params) }
|
4
4
|
|
5
5
|
describe '#find_account_by_id', vcr: true do
|
6
|
-
subject { service.find_account_by_id(
|
6
|
+
subject { service.find_account_by_id(account_id) }
|
7
7
|
|
8
|
-
|
8
|
+
context 'when success response' do
|
9
|
+
let(:account_id) { 10999 }
|
10
|
+
|
11
|
+
its('account.id') { is_expected.to eq '10999' }
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'when soap raise error' do
|
15
|
+
let(:account_id) { -1 }
|
16
|
+
|
17
|
+
it { expect { subject }.to raise_exception(Moneta::Api::RuntimeException, '(SOAP-ENV:Client) Validation error') }
|
18
|
+
end
|
9
19
|
end
|
10
20
|
|
11
21
|
describe 'wsdl url' do
|