spec/factories/user_factories.rb in ddr-models-1.17.1 vs spec/factories/user_factories.rb in ddr-models-2.0.0.pre.1

- old
+ new

@@ -1,7 +1,15 @@ FactoryGirl.define do + factory :user do + sequence(:username) { |n| "person#{n}@example.com" } email { |u| u.username } password "secret" + + trait :duke do + sequence(:username) { |n| "person#{n}@duke.edu" } + end + end + end