Some basic tests for user controller index
This commit is contained in:
parent
4955481f14
commit
c97affca35
8 changed files with 31 additions and 38 deletions
9
spec/support/sign_in_macros.rb
Normal file
9
spec/support/sign_in_macros.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
module SignInMacros
|
||||
def sign_in(user)
|
||||
visit new_user_session_path
|
||||
fill_in 'user_email', with:'user.email'
|
||||
fill_in 'user_password', with: 'user.password'
|
||||
click_button 'Sign in'
|
||||
page.should have_content('Signed in successfully')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue