Skip to content

Instantly share code, notes, and snippets.

@jeromegn
Created April 26, 2009 15:42
Show Gist options
  • Save jeromegn/102072 to your computer and use it in GitHub Desktop.
Save jeromegn/102072 to your computer and use it in GitHub Desktop.
Then /^I should be logged in$/ do
session = UserSession.find
return true if session
end
Given /^I am not logged in$/ do
session = UserSession.find
return true if !session
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment