spec/support/auth_macros.rb in lines-engine-0.6.2 vs spec/support/auth_macros.rb in lines-engine-0.9.0
- old
+ new
@@ -1,11 +1,11 @@
module AuthMacros
def log_in(attributes = {})
@_current_lines_user = FactoryGirl.create(:user, attributes)
visit lines.login_path
- fill_in "Email", with: @_current_lines_user.email
- fill_in "Password", with: @_current_lines_user.password
+ fill_in "email", with: @_current_lines_user.email
+ fill_in "password", with: @_current_lines_user.password
click_button "Login"
page.should have_content "Logged in"
end
def authorize(attributes = {})
\ No newline at end of file