destroy cookies instead of visiting a controller action for signing out (thx sarahmei)
This commit is contained in:
parent
2dd0012d1e
commit
f395a707ea
1 changed files with 2 additions and 1 deletions
|
|
@ -37,5 +37,6 @@ When /^I put in my password in "([^"]*)"$/ do |field|
|
|||
end
|
||||
|
||||
When /^I (?:log|sign) out$/ do
|
||||
step %(I go to the destroy user session page)
|
||||
$browser.delete_cookie('_session', 'path=/') if $browser
|
||||
$browser.delete_all_visible_cookies if $browser
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue