ensl.org/spec/factories/user.rb
Luke Barratt c2309dd2ef Added timezone based google calendar widget
Updated unicorn and capistrano deployment configuration for the staging environment
HTML formatting
Fixes errors when posting new issues
Added Google Calendar client code
CSS tweaks to layout
Added new .env vars
Layout tweaks
Updated contributors
2014-04-04 17:55:49 +01:00

22 lines
479 B
Ruby

FactoryGirl.define do
factory :user do
sequence(:username) { |n| "Player#{n}" }
sequence(:email) { |n| "player#{n}@ensl.org" }
sequence(:steamid) { |n| "0:1:#{n}" }
firstname "ENSL"
lastname "Player"
country "EU"
raw_password "PasswordABC123"
after(:create) do |user|
create(:profile, user: user)
end
factory :user_with_team do
after(:create) do |user|
create(:team, founder: user)
end
end
end
end