Sha256: e2a88b6956369f29e8742f8e100a0d37f015ebdf621ae51c9ba3d6d41c7a7a27

Contents?: true

Size: 535 Bytes

Versions: 24

Compression:

Stored size: 535 Bytes

Contents

FactoryGirl.define do
  factory :user do
    sequence(:email) { |_n| "email-#{srand}@test.com" }
    password 'a password'
    password_confirmation 'a password'
    factory :admin do
      after(:build) do |user|
        def user.groups
          ["admin"]
        end
      end
    end

    factory :jill do
      email 'jilluser@example.com'
    end

    factory :archivist, aliases: [:user_with_fixtures] do
      email 'archivist1@example.com'
    end

    factory :curator do
      email 'curator1@example.com'
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
geo_works-0.2.0 spec/factories/users.rb
geo_works-0.1.4 spec/factories/users.rb
geo_works-0.1.3 spec/factories/users.rb
geo_works-0.1.2 spec/factories/users.rb
geo_works-0.1.1 spec/factories/users.rb
geo_works-0.1.0 spec/factories/users.rb
geo_concerns-0.3.4 spec/factories/users.rb
geo_concerns-0.3.3 spec/factories/users.rb
geo_concerns-0.3.2 spec/factories/users.rb
geo_concerns-0.3.1 spec/factories/users.rb
geo_concerns-0.3.0 spec/factories/users.rb
geo_concerns-0.2.0 spec/factories/users.rb
geo_concerns-0.1.1 spec/factories/users.rb
geo_concerns-0.1.0 spec/factories/users.rb
geo_concerns-0.0.10 spec/factories/users.rb
geo_concerns-0.0.9 spec/factories/users.rb
geo_concerns-0.0.8 spec/factories/users.rb
geo_concerns-0.0.7 spec/factories/users.rb
geo_concerns-0.0.6 spec/factories/users.rb
geo_concerns-0.0.5 spec/factories/users.rb