Sha256: 117bf19fe1f2a1f9cb37a7a782cba08dba3d5b0000825a37cfb45e645d9ad666
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
require 'spec_helper' describe StripeLocal::Invoice do let(:response) { File.read("./spec/webhook_fixtures/invoice.payment_succeeded.json") } let(:stripe_invoice) { Stripe::Invoice.construct_from(MultiJson.load(response)) } it "can normalize Stripe Params on create" do i = StripeLocal::Invoice.create( stripe_invoice ) i.customer_id.should eq "cus_1A3zUmx7NpUgrT" i.amount_due.should eq 9900 i.total.should eq 9900 i.subtotal.should eq 9900 i.lines(true).size.should be 1 i.lines.first.amount.should eq 9900 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stripe_local-0.2.5 | spec/models/stripe_local/invoice_spec.rb |
stripe_local-0.2.4 | spec/models/stripe_local/invoice_spec.rb |
stripe_local-0.2.3 | spec/models/stripe_local/invoice_spec.rb |