Refactor factory girl usage in specs

This commit is contained in:
Thibault Jouan
2015-05-01 15:21:41 +00:00
parent 3247dd0934
commit 00fe9bf258
9 changed files with 17 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ feature 'User sign in' do
end
scenario 'signs the user in' do
user = FactoryGirl.create(:user)
user = create :user
visit new_session_path
fill_in 'Email', with: user.email

View File

@@ -1,5 +1,5 @@
feature 'User sign up' do
let(:user) { FactoryGirl.build(:user) }
let(:user) { build :user }
background do
visit new_user_path