features/command_line_interface/stdin.feature in reek-1.3.4 vs features/command_line_interface/stdin.feature in reek-1.3.5
- old
+ new
@@ -7,28 +7,26 @@
Scenario: return zero status with no smells
When I pass "def simple() @fred = 3 end" to reek
Then it succeeds
And it reports:
"""
- $stdin -- 0 warnings
-
"""
- Scenario: outputs header only on empty stdin
- When I pass "" to reek
+ Scenario: outputs nothing on empty stdin
+ When I pass "" to reek --quiet
Then it succeeds
+ And stdout equals ""
+
+ Scenario: outputs header only on empty stdin in verbose mode
+ When I pass "" to reek -V
+ Then it succeeds
And it reports:
"""
$stdin -- 0 warnings
"""
- Scenario: outputs nothing on empty stdin in quiet mode
- When I pass "" to reek --quiet
- Then it succeeds
- And stdout equals ""
-
Scenario: return non-zero status when there are smells
When I pass "class Turn; def y() @x = 3; end end" to reek
Then the exit status indicates smells
And it reports:
"""
@@ -40,13 +38,9 @@
"""
@stderr
Scenario: syntax error causes the source to be ignored
When I pass "def incomplete" to reek
+ Then it reports a parsing error
Then it succeeds
- And it reports:
- """
- $stdin -- 0 warnings
-
- """
- And it reports a parsing error
+ And stdout equals ""