Skip to content

Commit

Permalink
Fixed [cucumber#191 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Feb 5, 2009
1 parent e1fe05e commit c47dfc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion features/cucumber_cli.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Cucumber command line

Scenario: Run single scenario with missing step definition
When I run cucumber -q features/sample.feature:5
Then it should pass with
Then it should pass with
"""
@one
Feature: Sample
Expand Down
4 changes: 2 additions & 2 deletions lib/cucumber/parser/feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -889,9 +889,9 @@ def white
module Step1
def build
if multi.respond_to?(:build)
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value, multi.build)
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value.strip, multi.build)
else
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value)
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value.strip)
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/cucumber/parser/feature.tt
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ module Cucumber
comment space* step_keyword space* name:line_to_eol (eol+ / eof) multi:multiline_arg? white {
def build
if multi.respond_to?(:build)
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value, multi.build)
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value.strip, multi.build)
else
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value)
Ast::Step.new(step_keyword.line, step_keyword.text_value, name.text_value.strip)
end
end
}
Expand Down

0 comments on commit c47dfc6

Please sign in to comment.