Some tests for users controller, and fixed users#index

This commit is contained in:
Gopesh Tulsyan 2014-05-12 14:19:46 +05:30
parent adfa9cc871
commit 4955481f14
9 changed files with 84 additions and 10 deletions

View file

@ -0,0 +1,10 @@
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