Last active
December 17, 2015 11:29
-
-
Save rianrainey/5602337 to your computer and use it in GitHub Desktop.
Corewellness FactoryGirl setup.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read about factories at https://github.com/thoughtbot/factory_girl | |
FactoryGirl.define do | |
factory :user do | |
factory :facilitator, class: Facilitator do | |
sequence(:email) { |n| "facilitator#{n}@example.com" } | |
password "leezlepon" | |
password_confirmation "leezlepon" | |
contact_uri "asdfjkl;" | |
end | |
factory :business_administrator, class: BusinessAdministrator do | |
sequence(:email) { |n| "business_administrator#{n}@example.com" } | |
password "pepperpots" | |
password_confirmation "pepperpots" | |
contact_uri "asdfjkl;" | |
end | |
factory :super_administrator, class: SuperAdministrator do | |
sequence(:email) { |n| "super_administrator#{n}@example.com" } | |
password "ohm" | |
password_confirmation "ohm" | |
contact_uri "asdfjkl;" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment