-
-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use new factory_girl syntax and remove deprecated confirmed_email_user
- Loading branch information
1 parent
f78bcae
commit 852297b
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
Factory.sequence :email do |n| | ||
"user#{n}@example.com" | ||
end | ||
FactoryGirl.define do | ||
|
||
Factory.define :user do |factory| | ||
factory.email { Factory.next :email } | ||
factory.password { "password" } | ||
end | ||
sequence :email do |n| | ||
"user#{n}@example.com" | ||
end | ||
|
||
factory :user do | ||
password "password" | ||
end | ||
|
||
Factory.define :email_confirmed_user, :parent => :user do |factory| | ||
factory.after_build { warn "[DEPRECATION] The :email_confirmed_user factory is deprecated, please use the :user factory instead." } | ||
end |