Sha256: ca60c3f007649fdfa519150fc9715429b4086969cdc0b2900a9aa05b0c51e940

Contents?: true

Size: 427 Bytes

Versions: 10

Compression:

Stored size: 427 Bytes

Contents

FactoryGirl.define do

  factory :person do
    sequence(:first_name) { |n| "John_#{n}" }
    sequence(:last_name) { |n| "Doe_#{n}" }
    sequence(:email) { |n| "johndoe_#{n}@domain.com"}
    title "Sales Rep"
    dob (Time.now - 30.years)
    is_manager false
  end

  factory :credit_card_info do
  	sequence(:cardholder) { |n| "John Adams #{n}" }
  	exp_date Time.now + 2.years
  	secret_code SecureRandom.hex(8)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
controller_scaffolding-1.4.4 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.4.3 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.4.2 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.4.1 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.4.0 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.3.0 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.2.0 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.1.1 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.1.0 test/dummy/spec/factories/factory.rb
controller_scaffolding-1.0.4 test/dummy/spec/factories/factory.rb