Created
April 29, 2009 15:08
-
-
Save tomtt/103836 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ### Feature: | |
| Feature: Test cucumber issue | |
| Background: | |
| Given a news article | |
| Scenario: comments has not passed moderation | |
| Then there should be 1 news article in the database | |
| @current | |
| Scenario: comment is reported by a user | |
| Then there should be 1 news article in the database | |
| ### Command output: | |
| >: cuke features/features_comments/test.feature -t current | |
| ./features/support/formatter_shared.rb:13: warning: already initialized constant STAGES | |
| Feature: Test cucumber issue | |
| Background: # features/features_comments/test.feature:3 | |
| Given a news article # features/step_definitions/news_article_steps.rb:1 | |
| @current | |
| Scenario: comment is reported by a user # features/features_comments/test.feature:10 | |
| Then there should be 1 news article in the database # features/step_definitions/cms_steps.rb:55 | |
| expected: 1, | |
| got: 2 (using ==) | |
| Diff: | |
| @@ -1,2 +1,2 @@ | |
| -1 | |
| +2 | |
| (Spec::Expectations::ExpectationNotMetError) | |
| ./features/step_definitions/cms_steps.rb:57:in `/^there should be (\d+) (.*)s? in the database$/i' | |
| features/features_comments/test.feature:11:in `Then there should be 1 news article in the database' | |
| 1 scenario | |
| 1 failed step | |
| 2 passed steps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment