We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05c11a commit 9692830Copy full SHA for 9692830
spec/controllers/users_controller_spec.rb
@@ -3,7 +3,7 @@
3
describe UsersController do
4
5
before (:each) do
6
- @user = Factory(:user)
+ @user = FactoryGirl.create(:user)
7
sign_in @user
8
end
9
spec/factories.rb spec/factories/users.rbspec/factories.rb renamed to spec/factories/users.rb
@@ -1,3 +1,5 @@
1
+# Read about factories at https://github.com/thoughtbot/factory_girl
2
+
FactoryGirl.define do
factory :user do
name 'Test User'
0 commit comments