Sha256: 2e0079630aea4b46eebf036cea82e402e67c07c57d8446eee8c742bf9e2ee79f
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
# Read about factories at http://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :customer , class: Jackpot::Customer do email description "MyText" factory :customer_with_subscription do subscription end factory :customer_with_valid_card do after_create do |customer| customer.update_credit_card valid_card end end factory :customer_with_subscription_and_valid_card , :parent => :customer_with_valid_card do subscription end end sequence :email do |n| "john#{n}@doe.com" end end def valid_card @card ||= Jackpot::Card.new(:first_name => 'foo', :last_name => 'bar', :number => '5555555555554444', :month => 1, :year => next_year, :verification_value => 123) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jackpot-0.0.3 | spec/support/factories/jackpot_customers.rb |