Sha256: d5eccb01cacdf7add318c412e496913ead4e3ce809fff3c1216e5d9662f29ec7

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

Fabricator(:user) do
  username { sequence(:username) { |i| "user#{i}" } }
  email { sequence(:email) { |i| "user#{i}@example.com" } }
  password 'password'
  password_confirmation 'password'
  activated_at Time.new.utc
end

Fabricator(:unactivated_user, from: :user) do
  activated_at nil
end

Fabricator(:oauth_user, from: :user) do
  username nil
  email nil
  password nil
  password_confirmation nil
  authentications(count: 1) { Fabricate(:authentication) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goma-0.0.1.rc3 test/fabricators/user_fabricator.rb
goma-0.0.1.rc2 test/fabricators/user_fabricator.rb