Permalink
Browse files

fix use of FactoryGirl

  • Loading branch information...
1 parent a05c11a commit 9692830ade1e8c528b08af5971cd13daa2348906 @DanielKehoe DanielKehoe committed Mar 16, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 spec/controllers/users_controller_spec.rb
  2. +2 −0 spec/{factories.rb → factories/users.rb}
@@ -3,7 +3,7 @@
describe UsersController do
before (:each) do
- @user = Factory(:user)
+ @user = FactoryGirl.create(:user)
sign_in @user
end
@@ -1,3 +1,5 @@
+# Read about factories at https://github.com/thoughtbot/factory_girl
+
FactoryGirl.define do
factory :user do
name 'Test User'

0 comments on commit 9692830

Please sign in to comment.