Sha256: b25f23b651ccce90f572733947e4bf5f3b779a07a99dae09f5e0563c94ca3845

Contents?: true

Size: 318 Bytes

Versions: 19

Compression:

Stored size: 318 Bytes

Contents

FactoryGirl.define do
  factory :user do
    sequence(:name)  { |n| "Person #{n}" }
    sequence(:email) { |n| "person_#{n}@example.com"}
    password "foobar"
    password_confirmation "foobar"

    factory :admin do
      admin true
    end
  end

  factory :micropost do
    content "Lorem ipsum"
    user
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
active_mocker-1.4.2 sample_app_rails_4/spec/factories.rb
active_mocker-1.4.1 sample_app_rails_4/spec/factories.rb
active_mocker-1.3.2 sample_app_rails_4/spec/factories.rb
active_mocker-1.3.1 sample_app_rails_4/spec/factories.rb
active_mocker-1.3 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.4 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.3 sample_app_rails_4/spec/factories.rb
active_mocker-1.2 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.11 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.10 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.9 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.8 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.7 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.6 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.5 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.4 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.3 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.2 sample_app_rails_4/spec/factories.rb
active_mocker-1.2.pre.1 sample_app_rails_4/spec/factories.rb