Sha256: 91ad322c2e6a77deb02e66ffe4f4af24b254237ebf52db6503790611dd3017a8

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

describe Moneta::Api::Requests::FindBankAccountsRequest, vcr: true do
  include_context 'moneta'

  let(:request) { described_class.new }
  let(:response) { service.find_bank_accounts(request) }

  before { request.fill({}) }

  subject { response.bank_account }

  its(:count) { is_expected.to eq 6 }

  describe 'first account' do
    let(:bank_account) { response.get_account(1182) }
    subject { bank_account }

    its(:id) { is_expected.to eq 1182 }

    describe '.attribute' do
      subject { bank_account.attribute }

      its([:bank]) { is_expected.to eq(value: 'ФИЛИАЛ "БАЙКОНУР" ОАО "СОБИНБАНК"', approved: false) }
      its([:account]) { is_expected.to eq(value: '30301810000006000001', approved: false) }
      its([:bik]) { is_expected.to eq(value: '044525225', approved: false) }
      its([:corr_account]) { is_expected.to eq(value: '30101810400000000225', approved: false) }
      its([:is_international]) { is_expected.to eq(value: 'false', approved: false) }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moneta-api-2.1.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-2.0.0 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-2.0.0.rc2 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb
moneta-api-2.0.0.rc1 spec/lib/moneta/api/requests/find_bank_accounts_request_spec.rb