gherkin 2.1.2-java → 2.1.3-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 1
8
- - 2
9
- version: 2.1.2
8
+ - 3
9
+ version: 2.1.3
10
10
  platform: java
11
11
  authors:
12
12
  - Mike Sassak
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-13 00:00:00 +02:00
19
+ date: 2010-07-14 00:00:00 +02:00
20
20
  default_executable: gherkin
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -159,6 +159,7 @@ files:
159
159
  - spec/gherkin/fixtures/i18n_fr.feature
160
160
  - spec/gherkin/fixtures/i18n_no.feature
161
161
  - spec/gherkin/fixtures/i18n_zh-CN.feature
162
+ - spec/gherkin/fixtures/scenario_outline_with_tags.feature
162
163
  - spec/gherkin/fixtures/simple_with_comments.feature
163
164
  - spec/gherkin/fixtures/simple_with_tags.feature
164
165
  - spec/gherkin/fixtures/with_bom.feature