Skip to content

Commit 9692830

Browse files
committed
fix use of FactoryGirl
1 parent a05c11a commit 9692830

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

spec/controllers/users_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe UsersController do
44

55
before (:each) do
6-
@user = Factory(:user)
6+
@user = FactoryGirl.create(:user)
77
sign_in @user
88
end
99

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Read about factories at https://github.com/thoughtbot/factory_girl
2+
13
FactoryGirl.define do
24
factory :user do
35
name 'Test User'

0 commit comments

Comments
 (0)