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

Version Path
stripe_local-0.2.5 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.2.4 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.2.3 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.2.2 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.2.1 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.2.0 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.1.3 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.1.2 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.1.1 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.1.0 spec/models/stripe_local/transaction_spec.rb
stripe_local-0.0.2 spec/models/stripe_local/transaction_spec.rb