Permalink
Browse files

2 more down

  • Loading branch information...
1 parent 79d781d commit 7619d70c4cbbc3c0cf5a5a2eb384777fc7e1477c @aslakhellesoy aslakhellesoy committed Apr 18, 2010
Showing with 31 additions and 31 deletions.
  1. +30 −30 features/usage_and_stepdefs_formatter.feature
  2. +1 −1 lib/cucumber/formatter/usage.rb
@@ -136,34 +136,34 @@ Feature: Cucumber command line
"""
- Scenario: --format steps
- When I run cucumber features --format stepdefs --dry-run
- Then STDERR should be empty
- And it should pass with
- """
- -------------------------------------UU-U--------------UUUUU---------U-------U--------------U-UU-------------------------------------------------UU
-
- /^'(.+)' cukes$/ # features/step_definitions/sample_steps.rb:27
- /^'(.+)' global cukes$/ # features/step_definitions/sample_steps.rb:35
- /^I should have '(.+)' cukes$/ # features/step_definitions/sample_steps.rb:31
- /^I should have '(.+)' global cukes$/ # features/step_definitions/sample_steps.rb:42
- /^a step definition that calls an undefined step$/ # features/step_definitions/sample_steps.rb:19
- /^another unused$/ # features/step_definitions/sample_steps.rb:69
- NOT MATCHED BY ANY STEPS
- /^call step "(.*)"$/ # features/step_definitions/sample_steps.rb:23
- /^failing expectation$/ # features/step_definitions/sample_steps.rb:62
- /^failing without a table$/ # features/step_definitions/sample_steps.rb:15
- /^failing$/ # features/step_definitions/sample_steps.rb:8
- /^multiline string$/ # features/step_definitions/sample_steps.rb:50
- /^passing without a table$/ # features/step_definitions/sample_steps.rb:12
- /^passing$/ # features/step_definitions/sample_steps.rb:5
- /^table$/ # features/step_definitions/sample_steps.rb:46
- /^the multiline string should be$/ # features/step_definitions/sample_steps.rb:58
- /^the table should be$/ # features/step_definitions/sample_steps.rb:54
- /^unused$/ # features/step_definitions/sample_steps.rb:66
- NOT MATCHED BY ANY STEPS
-
- 43 scenarios (32 skipped, 10 undefined, 1 passed)
- 131 steps (117 skipped, 14 undefined)
+ Scenario: --format stepdefs
+ When I run cucumber features --format stepdefs --dry-run
+ Then STDERR should be empty
+ And it should pass with
+ """
+ -------------------------------------UU-U--------------UUUUU---------U-------U--------------U-UU-------------------------------------------------UU
+
+ /^'(.+)' cukes$/ # features/step_definitions/sample_steps.rb:27
+ /^'(.+)' global cukes$/ # features/step_definitions/sample_steps.rb:35
+ /^I should have '(.+)' cukes$/ # features/step_definitions/sample_steps.rb:31
+ /^I should have '(.+)' global cukes$/ # features/step_definitions/sample_steps.rb:42
+ /^a step definition that calls an undefined step$/ # features/step_definitions/sample_steps.rb:19
+ /^another unused$/ # features/step_definitions/sample_steps.rb:69
+ NOT MATCHED BY ANY STEPS
+ /^call step "(.*)"$/ # features/step_definitions/sample_steps.rb:23
+ /^failing expectation$/ # features/step_definitions/sample_steps.rb:62
+ /^failing without a table$/ # features/step_definitions/sample_steps.rb:15
+ /^failing$/ # features/step_definitions/sample_steps.rb:8
+ /^multiline string$/ # features/step_definitions/sample_steps.rb:50
+ /^passing without a table$/ # features/step_definitions/sample_steps.rb:12
+ /^passing$/ # features/step_definitions/sample_steps.rb:5
+ /^table$/ # features/step_definitions/sample_steps.rb:46
+ /^the multiline string should be$/ # features/step_definitions/sample_steps.rb:58
+ /^the table should be$/ # features/step_definitions/sample_steps.rb:54
+ /^unused$/ # features/step_definitions/sample_steps.rb:66
+ NOT MATCHED BY ANY STEPS
+
+ 43 scenarios (32 skipped, 10 undefined, 1 passed)
+ 131 steps (117 skipped, 14 undefined)
- """
+ """
@@ -69,7 +69,7 @@ def print_step_definition(stepdef_key)
@io.print format_string(stepdef_key.regexp_source, stepdef_key.status)
if @options[:source]
indent = max_length - stepdef_key.regexp_source.jlength
- line_comment = " # #{stepdef_key.file_colon_line}".indent(indent)
+ line_comment = " # #{stepdef_key.file_colon_line}".indent(indent)
@io.print(format_string(line_comment, :comment))
end
@io.puts

0 comments on commit 7619d70

Please sign in to comment.