Sha256: 91b02b682c8ed79dd02fe24da74bc480aee5e4d205c14445fa606bae957456c0

Contents?: true

Size: 435 Bytes

Versions: 11

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'

describe StripeLocal::Card do
  let(:response) { File.read("./spec/webhook_fixtures/customer.created.json") }
  let(:stripe_customer) { Stripe::Customer.construct_from(MultiJson.load(response)) }

  it 'can normalize Stripe Params on creation' do
    card = StripeLocal::Card.create( stripe_customer.cards.data.first.to_hash )
    card.brand.should == 'Visa'
    card.name.should == 'Connor Tumbleson'
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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