spec/factories/user_factories.rb in ddr-models-1.12.3 vs spec/factories/user_factories.rb in ddr-models-1.13.0
- old
+ new
@@ -1,7 +1,7 @@
FactoryGirl.define do
factory :user do
- sequence(:username) { |n| "person#{n}" }
- email { |u| "#{u.username}@example.com" }
+ sequence(:username) { |n| "person#{n}@example.com" }
+ email { |u| u.username }
password "secret"
end
end