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