Last Updated: February 25, 2016
·
1.491K
· mhenrixon

Multilingual Capybara Specs

def login(user)
  visit hosted_domain path: admin_login_path

  fill_in I18n.t(:email), with: user.email
  fill_in I18n.t(:password), with: user.password
  click_button I18n.t(:login)
end