mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-04-04 05:33:22 -04:00
-Moved bikes to User model instead of profile -User can copy user log to a bike log with new actsasloggable -Added user stats -some css was messing up checkboxes, need to figure out which stylesheet was doing that
23 lines
421 B
Ruby
23 lines
421 B
Ruby
FactoryGirl.define do
|
|
factory :user do
|
|
sequence(:email) { |n| "user_#{n}@example.com" }
|
|
password 'password'
|
|
password_confirmation { password }
|
|
first_name 'Michael'
|
|
last_name 'Scott'
|
|
user_role_id 1
|
|
sequence(:bike_id) { |n| n }
|
|
|
|
factory :staff do
|
|
first_name 'Staff'
|
|
user_role_id 2
|
|
end
|
|
|
|
factory :admin do
|
|
first_name 'Admin'
|
|
user_role_id 3
|
|
end
|
|
|
|
end
|
|
end
|