Files
railsgoat/spec/support/capybara_shared.rb
T
2013-09-27 16:58:33 -05:00

9 lines
174 B
Ruby

def login(user)
visit '/'
within('.signup') do
fill_in 'email', :with => user.email
fill_in 'password', :with => user.clear_password
end
click_on 'Login'
end