Replace cucumber features by rails integration specs
This commit is contained in:
9
spec/support/user_integration_helpers.rb
Normal file
9
spec/support/user_integration_helpers.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module UserIntegrationHelpers
|
||||
def sign_in
|
||||
user = Factory.create(:user)
|
||||
visit new_session_path
|
||||
fill_in 'Email', :with => user.email
|
||||
fill_in 'Password', :with => user.password
|
||||
click_button('Sign in')
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user