Skip to content

Instantly share code, notes, and snippets.

@rianrainey
Last active December 17, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rianrainey/5602337 to your computer and use it in GitHub Desktop.
Save rianrainey/5602337 to your computer and use it in GitHub Desktop.
Corewellness FactoryGirl setup.
# 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