Sha256: 27bfb848732aa46ff945b5cbb18f109c7e8e6a157937e4d0c16774be7d96ccec
Contents?: true
Size: 737 Bytes
Versions: 36
Compression:
Stored size: 737 Bytes
Contents
require 'quick_travel/payment_type' require 'rspec/its' describe QuickTravel::PaymentType do subject(:payment_type) { QuickTravel::PaymentType.new(payment_method: 'credit_card', credit_card_brand: brand) } context 'MasterCard' do let(:brand) { 'MasterCard' } its(:code) { should eq 'master_card' } end context 'American Express' do let(:brand) { 'American Express' } its(:code) { should eq 'american_express' } end context 'payment info' do it 'should fetch payment info' do VCR.use_cassette 'payment_info' do expect(QuickTravel::PaymentType.information).to eq( 'poli_pay' => { 'login' => 'S1234567' } ) end end end end
Version data entries
36 entries across 36 versions & 1 rubygems