Skip to content

Commit

Permalink
Fixed 177 more. Release 0.1.99.18
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jan 31, 2009
1 parent 2f5f011 commit e4566fc
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 69 deletions.
14 changes: 14 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ pure Ruby users have been enjoying for a while.
* Verify that custom formatters work - write a feature for it
* Implement at least a basic HTML formatter
* Run a single cucumber feature from rake "rake features FEATURE=/path/to/feature:line"
* Wiki page about running subsets
** file:line
*** scenario (or step within)
*** scenario outline
*** scenario outline examples
*** line in an example table
*** background (same as whole file)
*** fix bugs in any of those cases (there are some)
** --tags
*** Link to page about tags
* Tags with arguments
* cucumber.jar + examples
** Remove need for -S cucumber
** Full jar and simple jar

== Bugfixes
* -n option does not suppress the line info for a Scenario Outline (#175 Aslak Hellesøy)
Expand Down
5 changes: 3 additions & 2 deletions Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ examples/test_unit/features/test_unit.feature
examples/tickets/Rakefile
examples/tickets/cucumber.yml
examples/tickets/features/172.feature
examples/tickets/features/177-1.feature
examples/tickets/features/177-2.feature
examples/tickets/features/177/1.feature
examples/tickets/features/177/2.feature
examples/tickets/features/177/3.feature
examples/tickets/features/180.feature
examples/tickets/features/lib/eatting_machine.rb
examples/tickets/features/lib/pantry.rb
Expand Down
4 changes: 2 additions & 2 deletions cucumber.gemspec

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/i18n/README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ h1. Internationalisation (i18n) examples
Under this directory you'll find examples of Cucumber features written in
many of the natural languages Cucumber supports.

For a full list of what languages Cucumber supports - run <pre>cucumber --help</pre>
For a full list of what languages Cucumber supports - run <pre>cucumber --language help</pre>

h2. Running all the examples

Expand Down
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions examples/tickets/features/177/3.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Matt's example with a comment before a step

Scenario: Upload an image for an artist and create a concert in the process
Given I am logged in to my account
And there is one Artist named "Pixies"
And there is one Venue
When I visit the page for the Artist
And I follow "add a photo"
And I upload an Image
# Search on select concert page
And I press "Search Pixies concerts"
And I follow "Add a new Concert"
And I fill in new Concert information
And I press "Preview"
And I press "Add concert"
# No artists appear in this photo
And I press "Submit"
Then my Concert should exist with 1 Image
132 changes: 70 additions & 62 deletions lib/cucumber/parser/feature.rb
Original file line number Diff line number Diff line change
Expand Up @@ -879,20 +879,24 @@ def _nt_steps
end

module Step0
def comment
elements[0]
end

def step_keyword
elements[1]
elements[2]
end

def name
elements[3]
elements[4]
end

def multi
elements[5]
elements[6]
end

def white
elements[6]
elements[7]
end
end

Expand All @@ -915,75 +919,79 @@ def _nt_step
end

i0, s0 = index, []
s1, i1 = [], index
loop do
r2 = _nt_space
if r2
s1 << r2
else
break
end
end
r1 = SyntaxNode.new(input, i1...index, s1)
r1 = _nt_comment
s0 << r1
if r1
r3 = _nt_step_keyword
s0 << r3
if r3
s4, i4 = [], index
loop do
r5 = _nt_space
if r5
s4 << r5
else
break
end
s2, i2 = [], index
loop do
r3 = _nt_space
if r3
s2 << r3
else
break
end
r4 = SyntaxNode.new(input, i4...index, s4)
end
r2 = SyntaxNode.new(input, i2...index, s2)
s0 << r2
if r2
r4 = _nt_step_keyword
s0 << r4
if r4
r6 = _nt_line_to_eol
s0 << r6
if r6
i7 = index
s8, i8 = [], index
loop do
r9 = _nt_eol
if r9
s8 << r9
else
break
end
end
if s8.empty?
self.index = i8
r8 = nil
else
r8 = SyntaxNode.new(input, i8...index, s8)
end
if r8
r7 = r8
s5, i5 = [], index
loop do
r6 = _nt_space
if r6
s5 << r6
else
r10 = _nt_eof
if r10
r7 = r10
else
self.index = i7
r7 = nil
end
break
end
end
r5 = SyntaxNode.new(input, i5...index, s5)
s0 << r5
if r5
r7 = _nt_line_to_eol
s0 << r7
if r7
r12 = _nt_multiline_arg
if r12
r11 = r12
i8 = index
s9, i9 = [], index
loop do
r10 = _nt_eol
if r10
s9 << r10
else
break
end
end
if s9.empty?
self.index = i9
r9 = nil
else
r9 = SyntaxNode.new(input, i9...index, s9)
end
if r9
r8 = r9
else
r11 = SyntaxNode.new(input, index...index)
r11 = _nt_eof
if r11
r8 = r11
else
self.index = i8
r8 = nil
end
end
s0 << r11
if r11
r13 = _nt_white
s0 << r13
s0 << r8
if r8
r13 = _nt_multiline_arg
if r13
r12 = r13
else
r12 = SyntaxNode.new(input, index...index)
end
s0 << r12
if r12
r14 = _nt_white
s0 << r14
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/parser/feature.tt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module Cucumber
end

rule step
space* step_keyword space* name:line_to_eol (eol+ / eof) multi:multiline_arg? white {
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)
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class VERSION #:nodoc:
MAJOR = 0
MINOR = 1
TINY = 99
PATCH = 17 # Set to nil for official release
PATCH = 18 # Set to nil for official release

STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
end
Expand Down

0 comments on commit e4566fc

Please sign in to comment.