Permalink
Browse files

updated factory girl syntax in user factory

  • Loading branch information...
dcrec1 committed Feb 12, 2012
1 parent 1a04b17 commit b51ad45361b83b24475f8db60d8f4e9af8a7ef7e
Showing with 5 additions and 3 deletions.
  1. +5 −3 users.rb
View
@@ -1,4 +1,6 @@
-Factory.define :user do |f|
- f.sequence(:email) { |n| "chuck#{n}@norris.com" }
- f.password "chuck123"
+FactoryGirl.define do
+ factory :user do
+ sequence(:email) { |i| "user#{i}@email.com" }
+ password "abc123"
+ end
end

0 comments on commit b51ad45

Please sign in to comment.