Sha256: b3fe2d1b409e6ac4ab557fd2090a21f851a064350ef4d589ae5ba10d8ab5d200
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
describe Akatus::Services::PaymentOptions do it 'fetches all available payment methods for an account' do result = Akatus::Services::PaymentOptions.available result.should be_a(Hash) result.keys.reject { |k| [:boleto, :credit_card, :eft].include?(k) }.should be_empty end it 'fetches all available payment methods (with installments) for a payment' do p = Akatus::Payment.new p.items << build(:item) r1 = Akatus::Services::PaymentOptions.available r2 = Akatus::Services::PaymentOptions.available_with_installments(p) r2.should be_a(Hash) r2.keys.should == r1.keys end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
akatus-1.0.2 | spec/services/payment_options_spec.rb |
akatus-1.0.1 | spec/services/payment_options_spec.rb |
akatus-1.0.0 | spec/services/payment_options_spec.rb |