Sha256: 6af2e69c3f9e1c250d0bd8fdb54ebeca818711d148ff501b4a51f77e63d71e4b
Contents?: true
Size: 886 Bytes
Versions: 6
Compression:
Stored size: 886 Bytes
Contents
describe Moneta::Api::Service do let(:params) { { demo_mode: true } } let(:service) { described_class.new($username, $password, params) } describe '#find_account_by_id', vcr: true do subject { service.find_account_by_id(10999) } its('account.id') { is_expected.to eq '10999' } end describe 'wsdl url' do subject{ service.client.globals.instance_variable_get('@options')[:wsdl] } context 'when demo mode' do it { is_expected.to eq 'https://demo.moneta.ru/services.wsdl' } end context 'when demo mode' do 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
Version data entries
6 entries across 6 versions & 1 rubygems