Sha256: 85514dddd9ea9f7d0e6ef74b7e88b28662e812851fdee15992ea1bd93aad8316
Contents?: true
Size: 652 Bytes
Versions: 1
Compression:
Stored size: 652 Bytes
Contents
require "spec_helper" include PayPal::ExpressCheckout describe PayPal::ExpressCheckout::Account do describe "#balance" do context "when successful" do use_vcr_cassette "express_checkout/account/balance/success" let(:account) { Account.new } subject { account.balance } it { should be_success } it { should be_valid } its(:balances) { should have(1).item } it "should have the correct amount" do subject.balances.first[:amount].should eql(224.58) end it "should have the correct currency" do subject.balances.first[:currency].should eql('USD') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
paypal-payment-0.1.2 | spec/paypal/express_checkout/account/balance_spec.rb |