You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
226 B
8 lines
226 B
11 years ago
|
module AuthenticationForFeatureRequest
|
||
|
def login user, password = 'login'
|
||
|
user.update_attribute :password, password
|
||
|
|
||
|
page.driver.post sessions_url, {email: user.email, password: password}
|
||
|
visit root_url
|
||
|
end
|
||
|
end
|