Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use new factory_girl syntax and remove deprecated confirmed_email_user

  • Loading branch information...
commit 852297b3b02e7d7d3742bf9f2838023051d7c6e8 1 parent f78bcae
@drapergeek drapergeek authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 spec/factories.rb
View
18 spec/factories.rb
@@ -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
+ email
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.