Created
December 16, 2015 05:34
-
-
Save santosh79/63f182a24a0c23ea18a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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