gherkin 2.1.2-i386-mingw32 → 2.1.3-i386-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 2.1.3 (2010-07-14)
2
+
3
+ === Bugfixes
4
+ * Examples are not cleared when an ignored Scenario Outline/Examples is followed by a Scenario. (#67 Aslak Hellesøy)
5
+
1
6
  == 2.1.2 (2010-07-13)
2
7
 
3
8
  === Bugfixes
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
@@ -42,6 +42,7 @@ module Gherkin
42
42
  @feature_element_name = statement.name
43
43
  @feature_element_range = statement.line_range
44
44
  @feature_element_events = [[:scenario, statement]]
45
+ @examples_events.clear
45
46
  end
46
47
 
47
48
  def scenario_outline(statement)
@@ -6,8 +6,8 @@ require 'gherkin/listener/formatter_listener'
6
6
  module Gherkin
7
7
  module Parser
8
8
  class ParseError < StandardError
9
- def initialize(state, new_state, expected_states, line)
10
- super("Parse error on line #{line}. Found #{new_state} when expecting one of: #{expected_states.join(', ')}. (Current state: #{state}).")
9
+ def initialize(state, new_state, expected_states, uri, line)
10
+ super("Parse error on line #{uri}:#{line}. Found #{new_state} when expecting one of: #{expected_states.join(', ')}. (Current state: #{state}).")
11
11
  end
12
12
  end
13
13
 
@@ -0,0 +1,13 @@
1
+ Feature: Bug 67
2
+
3
+ @wip
4
+ Scenario Outline: WIP
5
+ When blah
6
+
7
+ Examples:
8
+ | a |
9
+ | b |
10
+ | c |
11
+
12
+ Scenario: Not WIP
13
+ When blah
@@ -55,6 +55,11 @@ module Gherkin
55
55
  it "should filter on second examples tag" do
56
56
  verify_filter(['@hamster'], 1..14, 46..49, 56..61)
57
57
  end
58
+
59
+ it "should not replay examples from ignored scenario outline" do
60
+ self.file = 'scenario_outline_with_tags.feature'
61
+ verify_filter(['~@wip'], 1..2, 12..14)
62
+ end
58
63
  end
59
64
 
60
65
  context "names" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: i386-mingw32
12
12
  authors:
13
13
  - Mike Sassak
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-07-13 00:00:00 +02:00
20
+ date: 2010-07-14 00:00:00 +02:00
21
21
  default_executable: gherkin
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -271,6 +271,7 @@ files:
271
271
  - spec/gherkin/fixtures/i18n_fr.feature
272
272
  - spec/gherkin/fixtures/i18n_no.feature
273
273
  - spec/gherkin/fixtures/i18n_zh-CN.feature
274
+ - spec/gherkin/fixtures/scenario_outline_with_tags.feature
274
275
  - spec/gherkin/fixtures/simple_with_comments.feature
275
276
  - spec/gherkin/fixtures/simple_with_tags.feature
276
277
  - spec/gherkin/fixtures/with_bom.feature