Skip to content

Instantly share code, notes, and snippets.

@santosh79
Created December 16, 2015 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santosh79/63f182a24a0c23ea18a8 to your computer and use it in GitHub Desktop.
Save santosh79/63f182a24a0c23ea18a8 to your computer and use it in GitHub Desktop.
describe "As a user who has not logged in", do
user
before do
assert user.loggedIn? == false
end
it "Should NOT be able to do a post", do
result = user.post "Some message"
assert result == :failed
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment