Skip to content

Commit

Permalink
fix use of FactoryGirl
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKehoe committed Mar 16, 2012
1 parent a05c11a commit 9692830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/users_controller_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe UsersController do

before (:each) do
@user = Factory(:user)
@user = FactoryGirl.create(:user)
sign_in @user
end

Expand Down
2 changes: 2 additions & 0 deletions spec/factories.rb → spec/factories/users.rb
@@ -1,3 +1,5 @@
# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
factory :user do
name 'Test User'
Expand Down

0 comments on commit 9692830

Please sign in to comment.