clean ups

This commit is contained in:
Reinier Balt 2011-02-26 14:20:51 +01:00
parent b53fbc64dc
commit 36f007a087
6 changed files with 19 additions and 29 deletions

View file

@ -7,8 +7,8 @@ Given /^I have logged in as "(.*)" with password "(.*)"$/ do |username, password
if response.respond_to? :selenium
selenium.wait_for_page_to_load(5000)
end
logout_string = @mobile_interface ? "Logout" : "Logout \(#{username}\)"
response.should contain(/#{logout_string}/)
logout_regexp = @mobile_interface ? "Logout" : "Logout \(#{username}\)"
response.should contain(logout_regexp)
@current_user = User.find_by_login(username)
end