Sha256: fa6776961f9f92d0a65dd3f7db4e0d1068cc1fcaab5daa373c892356e73763a1
Contents?: true
Size: 472 Bytes
Versions: 11
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper' describe StripeLocal::Transaction do let(:response) { File.read("./spec/webhook_fixtures/balance_transaction.json") } let(:transaction) { Stripe::StripeObject.construct_from(MultiJson.load(response)) } it "can normalize attributes from Stripe on create" do t = StripeLocal::Transaction.create( transaction ) t.source_type.should eq "transfer" t.source_id.should eq "tr_2fOGfKABdHu3uf" t.status.should eq "available" end end
Version data entries
11 entries across 11 versions & 1 rubygems