cucumber 1.2.5 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +14 -6
  2. data/.ruby-gemset +1 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +1 -0
  5. data/.yardopts +1 -0
  6. data/CONTRIBUTING.md +2 -2
  7. data/History.md +38 -2
  8. data/bin/cucumber +2 -11
  9. data/cucumber.gemspec +3 -3
  10. data/cucumber.yml +5 -1
  11. data/examples/test_unit/Gemfile +4 -0
  12. data/examples/test_unit/features/step_definitions/test_unit_steps.rb +1 -4
  13. data/examples/watir/README.textile +2 -2
  14. data/examples/watir/features/support/env.rb +10 -7
  15. data/features/.cucumber/stepdefs.json +747 -1354
  16. data/features/assertions.feature +6 -2
  17. data/features/background.feature +3 -0
  18. data/features/backtraces.feature +3 -3
  19. data/features/before_hook.feature +43 -0
  20. data/features/bootstrap.feature +14 -2
  21. data/features/custom_formatter.feature +1 -1
  22. data/features/drb_server_integration.feature +3 -3
  23. data/features/formatter_callbacks.feature +2 -2
  24. data/features/formatter_step_file_colon_line.feature +1 -1
  25. data/features/html_formatter.feature +52 -1
  26. data/features/json_formatter.feature +93 -7
  27. data/features/load_path.feature +14 -0
  28. data/features/nested_steps.feature +75 -3
  29. data/features/nested_steps_i18n.feature +36 -0
  30. data/features/pretty_formatter.feature +31 -0
  31. data/features/progress_formatter.feature +31 -0
  32. data/features/raketask.feature +51 -0
  33. data/features/rerun_formatter.feature +1 -1
  34. data/features/stats_formatters.feature +17 -14
  35. data/features/step_definitions/cucumber_steps.rb +6 -4
  36. data/features/support/env.rb +31 -4
  37. data/features/support/feature_factory.rb +17 -0
  38. data/features/tagged_hooks.feature +37 -195
  39. data/features/transforms.feature +15 -15
  40. data/gem_tasks/cucumber.rake +2 -0
  41. data/gem_tasks/yard.rake +10 -6
  42. data/legacy_features/README.md +14 -0
  43. data/legacy_features/language_help.feature +3 -1
  44. data/legacy_features/report_called_undefined_steps.feature +1 -0
  45. data/legacy_features/snippets_when_using_star_keyword.feature +1 -0
  46. data/legacy_features/support/env.rb +4 -0
  47. data/lib/cucumber/ast/background.rb +35 -35
  48. data/lib/cucumber/ast/empty_background.rb +33 -0
  49. data/lib/cucumber/ast/examples.rb +5 -2
  50. data/lib/cucumber/ast/feature.rb +24 -35
  51. data/lib/cucumber/ast/features.rb +4 -1
  52. data/lib/cucumber/ast/has_steps.rb +9 -17
  53. data/lib/cucumber/ast/location.rb +41 -0
  54. data/lib/cucumber/ast/scenario.rb +37 -50
  55. data/lib/cucumber/ast/scenario_outline.rb +62 -49
  56. data/lib/cucumber/ast/step.rb +23 -27
  57. data/lib/cucumber/ast/step_collection.rb +16 -0
  58. data/lib/cucumber/ast/step_invocation.rb +4 -1
  59. data/lib/cucumber/ast/tree_walker.rb +7 -0
  60. data/lib/cucumber/cli/configuration.rb +15 -3
  61. data/lib/cucumber/cli/main.rb +24 -11
  62. data/lib/cucumber/cli/options.rb +24 -16
  63. data/lib/cucumber/configuration.rb +4 -0
  64. data/lib/cucumber/core_ext/disable_mini_and_test_unit_autorun.rb +10 -34
  65. data/lib/cucumber/core_ext/instance_exec.rb +4 -1
  66. data/lib/cucumber/core_ext/proc.rb +2 -0
  67. data/lib/cucumber/feature_file.rb +5 -12
  68. data/lib/cucumber/formatter/console.rb +10 -0
  69. data/lib/cucumber/formatter/gherkin_formatter_adapter.rb +4 -4
  70. data/lib/cucumber/formatter/html.rb +7 -42
  71. data/lib/cucumber/formatter/interceptor.rb +4 -0
  72. data/lib/cucumber/formatter/json_pretty.rb +0 -4
  73. data/lib/cucumber/formatter/junit.rb +8 -2
  74. data/lib/cucumber/formatter/pretty.rb +5 -1
  75. data/lib/cucumber/formatter/progress.rb +4 -0
  76. data/lib/cucumber/formatter/unicode.rb +12 -25
  77. data/lib/cucumber/formatter/usage.rb +7 -2
  78. data/lib/cucumber/js_support/js_snippets.rb +1 -1
  79. data/lib/cucumber/load_path.rb +13 -0
  80. data/lib/cucumber/parser/gherkin_builder.rb +237 -81
  81. data/lib/cucumber/platform.rb +1 -1
  82. data/lib/cucumber/py_support/py_language.rb +1 -1
  83. data/lib/cucumber/rake/task.rb +5 -1
  84. data/lib/cucumber/rb_support/rb_language.rb +20 -19
  85. data/lib/cucumber/rb_support/rb_world.rb +63 -21
  86. data/lib/cucumber/rb_support/snippet.rb +108 -0
  87. data/lib/cucumber/runtime.rb +1 -0
  88. data/lib/cucumber/runtime/support_code.rb +2 -2
  89. data/lib/cucumber/unit.rb +11 -0
  90. data/lib/cucumber/wire_support/wire_language.rb +1 -1
  91. data/spec/cucumber/ast/background_spec.rb +13 -6
  92. data/spec/cucumber/ast/feature_factory.rb +20 -10
  93. data/spec/cucumber/ast/features_spec.rb +51 -0
  94. data/spec/cucumber/ast/scenario_outline_spec.rb +13 -7
  95. data/spec/cucumber/ast/step_spec.rb +6 -4
  96. data/spec/cucumber/cli/configuration_spec.rb +34 -1
  97. data/spec/cucumber/cli/main_spec.rb +36 -26
  98. data/spec/cucumber/cli/options_spec.rb +28 -19
  99. data/spec/cucumber/core_ext/proc_spec.rb +13 -1
  100. data/spec/cucumber/formatter/interceptor_spec.rb +8 -0
  101. data/spec/cucumber/formatter/junit_spec.rb +33 -0
  102. data/spec/cucumber/formatter/pretty_spec.rb +391 -0
  103. data/spec/cucumber/rb_support/rb_language_spec.rb +21 -50
  104. data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +2 -4
  105. data/spec/cucumber/rb_support/snippet_spec.rb +128 -0
  106. data/spec/cucumber/step_match_spec.rb +2 -6
  107. metadata +62 -113
  108. data/.rvmrc +0 -1
  109. data/features/hooks.feature +0 -59
  110. data/legacy_features/call_steps_from_stepdefs.feature +0 -154
@@ -15,68 +15,39 @@ module Cucumber
15
15
  Object.new.extend(RbSupport::RbDsl)
16
16
  end
17
17
 
18
- def unindented(s)
19
- s.split("\n")[1..-2].join("\n").indent(-10)
20
- end
21
-
22
18
  describe "snippets" do
19
+ let(:snippet) { stub.as_null_object }
23
20
 
24
- it "should wrap snippet patterns in parentheses" do
25
- rb.snippet_text('Given', 'A "string" with 4 spaces', nil).should == unindented(%{
26
- Given(/^A "(.*?)" with (\\d+) spaces$/) do |arg1, arg2|
27
- pending # express the regexp above with the code you wish you had
28
- end
29
- })
21
+ it "creates a regexp Snippet class by default" do
22
+ Snippet::Regexp.should_receive(:new).and_return(snippet)
23
+ rb.snippet_text('Given', 'A "string" with 4 spaces', nil)
30
24
  end
31
25
 
32
- it "should recognise numbers in name and make according regexp" do
33
- rb.snippet_text('Given', 'Cloud 9 yeah', nil).should == unindented(%{
34
- Given(/^Cloud (\\d+) yeah$/) do |arg1|
35
- pending # express the regexp above with the code you wish you had
36
- end
37
- })
26
+ it "creates a regexp Snippet class explicitly" do
27
+ Snippet::Regexp.should_receive(:new).and_return(snippet)
28
+ rb.snippet_text('Given', 'A "string" with 4 spaces', nil, :regexp)
38
29
  end
39
30
 
40
- it "should recognise a mix of ints, strings and why not a table too" do
41
- rb.snippet_text('Given', 'I have 9 "awesome" cukes in 37 "boxes"', Cucumber::Ast::Table).should == unindented(%{
42
- Given(/^I have (\\d+) "(.*?)" cukes in (\\d+) "(.*?)"$/) do |arg1, arg2, arg3, arg4, table|
43
- # table is a Cucumber::Ast::Table
44
- pending # express the regexp above with the code you wish you had
45
- end
46
- })
31
+ it "creates a classic Snippet class" do
32
+ Snippet::Classic.should_receive(:new).and_return(snippet)
33
+ rb.snippet_text('Given', 'A "string" with 4 spaces', nil, :classic)
47
34
  end
48
35
 
49
- it "should recognise quotes in name and make according regexp" do
50
- rb.snippet_text('Given', 'A "first" arg', nil).should == unindented(%{
51
- Given(/^A "(.*?)" arg$/) do |arg1|
52
- pending # express the regexp above with the code you wish you had
53
- end
54
- })
36
+ it "creates a percent Snippet class" do
37
+ Snippet::Percent.should_receive(:new).and_return(snippet)
38
+ rb.snippet_text('Given', 'A "string" with 4 spaces', nil, :percent)
55
39
  end
56
40
 
57
- it "should recognise several quoted words in name and make according regexp and args" do
58
- rb.snippet_text('Given', 'A "first" and "second" arg', nil).should == unindented(%{
59
- Given(/^A "(.*?)" and "(.*?)" arg$/) do |arg1, arg2|
60
- pending # express the regexp above with the code you wish you had
61
- end
62
- })
41
+ it "passes all parameters to Snippet contructor" do
42
+ code_keyword, pattern, multiline_argument_class = stub, stub, stub
43
+ Snippet::Regexp.should_receive(:new).with(code_keyword, pattern, multiline_argument_class)
44
+ rb.snippet_text(code_keyword, pattern, multiline_argument_class)
63
45
  end
64
46
 
65
- it "should not use quote group when there are no quotes" do
66
- rb.snippet_text('Given', 'A first arg', nil).should == unindented(%{
67
- Given(/^A first arg$/) do
68
- pending # express the regexp above with the code you wish you had
69
- end
70
- })
71
- end
72
-
73
- it "should be helpful with tables" do
74
- rb.snippet_text('Given', 'A "first" arg', Cucumber::Ast::Table).should == unindented(%{
75
- Given(/^A "(.*?)" arg$/) do |arg1, table|
76
- # table is a Cucumber::Ast::Table
77
- pending # express the regexp above with the code you wish you had
78
- end
79
- })
47
+ it "renders the snippet" do
48
+ Snippet::Regexp.stub(:new => snippet)
49
+ snippet.should_receive(:to_s)
50
+ rb.snippet_text('Given', 'A "string" with 4 spaces', nil)
80
51
  end
81
52
 
82
53
  end
@@ -12,10 +12,8 @@ module Cucumber
12
12
  end
13
13
 
14
14
  it "should create 2 arguments when first group is optional" do
15
- pending_under :java, "requires cucumber/gherkin >= ac42f51" do
16
- arguments = RegexpArgumentMatcher.arguments_from(/should( not)? be flashed '([^']*?)'$/, "I should be flashed 'Login failed.'")
17
- arguments.map{|argument| [argument.val, argument.offset]}.should == [[nil, nil], ["Login failed.", 21]]
18
- end
15
+ arguments = RegexpArgumentMatcher.arguments_from(/should( not)? be flashed '([^']*?)'$/, "I should be flashed 'Login failed.'")
16
+ arguments.map{|argument| [argument.val, argument.offset]}.should == [[nil, nil], ["Login failed.", 21]]
19
17
  end
20
18
  end
21
19
  end
@@ -0,0 +1,128 @@
1
+ require 'spec_helper'
2
+ require 'cucumber/rb_support/snippet'
3
+
4
+ module Cucumber
5
+ module RbSupport
6
+ describe Snippet do
7
+
8
+ let(:code_keyword) { "Given" }
9
+
10
+ before do
11
+ @pattern = 'we have a missing step'
12
+ @multiline_argument_class = nil
13
+ end
14
+
15
+ let(:snippet) do
16
+ snippet_class.new(code_keyword, @pattern, @multiline_argument_class)
17
+ end
18
+
19
+ def unindented(s)
20
+ s.split("\n")[1..-2].join("\n").indent(-10)
21
+ end
22
+
23
+ describe Snippet::Regexp do
24
+ let(:snippet_class) { Snippet::Regexp }
25
+ let(:snippet_text) { snippet.to_s }
26
+
27
+ it "should wrap snippet patterns in parentheses" do
28
+ @pattern = 'A "string" with 4 spaces'
29
+
30
+ snippet_text.should == unindented(%{
31
+ Given(/^A "(.*?)" with (\\d+) spaces$/) do |arg1, arg2|
32
+ pending # express the regexp above with the code you wish you had
33
+ end
34
+ })
35
+ end
36
+
37
+ it "should recognise numbers in name and make according regexp" do
38
+ @pattern = 'Cloud 9 yeah'
39
+
40
+ snippet_text.should == unindented(%{
41
+ Given(/^Cloud (\\d+) yeah$/) do |arg1|
42
+ pending # express the regexp above with the code you wish you had
43
+ end
44
+ })
45
+ end
46
+
47
+ it "should recognise a mix of ints, strings and why not a table too" do
48
+ @pattern = 'I have 9 "awesome" cukes in 37 "boxes"'
49
+ @multiline_argument_class = Cucumber::Ast::Table
50
+
51
+ snippet_text.should == unindented(%{
52
+ Given(/^I have (\\d+) "(.*?)" cukes in (\\d+) "(.*?)"$/) do |arg1, arg2, arg3, arg4, table|
53
+ # table is a Cucumber::Ast::Table
54
+ pending # express the regexp above with the code you wish you had
55
+ end
56
+ })
57
+ end
58
+
59
+ it "should recognise quotes in name and make according regexp" do
60
+ @pattern = 'A "first" arg'
61
+
62
+ snippet_text.should == unindented(%{
63
+ Given(/^A "(.*?)" arg$/) do |arg1|
64
+ pending # express the regexp above with the code you wish you had
65
+ end
66
+ })
67
+ end
68
+
69
+ it "should recognise several quoted words in name and make according regexp and args" do
70
+ @pattern = 'A "first" and "second" arg'
71
+
72
+ snippet_text.should == unindented(%{
73
+ Given(/^A "(.*?)" and "(.*?)" arg$/) do |arg1, arg2|
74
+ pending # express the regexp above with the code you wish you had
75
+ end
76
+ })
77
+ end
78
+
79
+ it "should not use quote group when there are no quotes" do
80
+ @pattern = 'A first arg'
81
+
82
+ snippet_text.should == unindented(%{
83
+ Given(/^A first arg$/) do
84
+ pending # express the regexp above with the code you wish you had
85
+ end
86
+ })
87
+ end
88
+
89
+ it "should be helpful with tables" do
90
+ @pattern = 'A "first" arg'
91
+ @multiline_argument_class = Cucumber::Ast::Table
92
+
93
+ snippet_text.should == unindented(%{
94
+ Given(/^A "(.*?)" arg$/) do |arg1, table|
95
+ # table is a Cucumber::Ast::Table
96
+ pending # express the regexp above with the code you wish you had
97
+ end
98
+ })
99
+ end
100
+ end
101
+
102
+ describe Snippet::Classic do
103
+ let(:snippet_class) { Snippet::Classic }
104
+
105
+ it "renders snippet as unwrapped regular expression" do
106
+ snippet.to_s.should eql unindented(%{
107
+ Given /^we have a missing step$/ do
108
+ pending # express the regexp above with the code you wish you had
109
+ end
110
+ })
111
+ end
112
+ end
113
+
114
+ describe Snippet::Percent do
115
+ let(:snippet_class) { Snippet::Percent }
116
+
117
+ it "renders snippet as percent-style regular expression" do
118
+ snippet.to_s.should eql unindented(%{
119
+ Given %r{^we have a missing step$} do
120
+ pending # express the regexp above with the code you wish you had
121
+ end
122
+ })
123
+ end
124
+ end
125
+
126
+ end
127
+ end
128
+ end
@@ -5,8 +5,6 @@ require 'cucumber/rb_support/rb_language'
5
5
 
6
6
  module Cucumber
7
7
  describe StepMatch do
8
- include RSpec::WorkInProgress
9
-
10
8
  WORD = Cucumber::RUBY_1_8_7 ? '\w' : '[[:word:]]'
11
9
 
12
10
  before do
@@ -59,10 +57,8 @@ module Cucumber
59
57
  end
60
58
 
61
59
  it "should format groups even when first group is optional and not matched" do
62
- pending_under :java, "requires cucumber/gherkin >= ac42f51" do
63
- m = step_match(/should( not)? be flashed '([^']*?)'$/, "I should be flashed 'Login failed.'")
64
- m.format_args("<span>%s</span>").should == "I should be flashed '<span>Login failed.</span>'"
65
- end
60
+ m = step_match(/should( not)? be flashed '([^']*?)'$/, "I should be flashed 'Login failed.'")
61
+ m.format_args("<span>%s</span>").should == "I should be flashed '<span>Login failed.</span>'"
66
62
  end
67
63
 
68
64
  it "should format embedded groups" do
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-08 00:00:00.000000000 Z
11
+ date: 2013-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.1.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.1.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: diff-lcs
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.3
41
41
  - !ruby/object:Gem::Dependency
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 2.11.7
47
+ version: 2.12.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 2.11.7
54
+ version: 2.12.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: multi_json
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: 0.5.0
75
+ version: 0.5.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: 0.5.0
82
+ version: 0.5.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -98,84 +98,84 @@ dependencies:
98
98
  name: nokogiri
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.5.2
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.5.2
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.9.2
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.9.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ! '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.13'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.13'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.6.2
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.6.2
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: spork
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ! '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: 1.0.0.rc2
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: 1.0.0.rc2
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: syntax
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: 1.0.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ! '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.0
181
181
  - !ruby/object:Gem::Dependency
@@ -224,70 +224,76 @@ dependencies:
224
224
  name: capybara
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - '>='
227
+ - - ! '>='
228
228
  - !ruby/object:Gem::Version
229
229
  version: 1.1.2
230
+ - - <
231
+ - !ruby/object:Gem::Version
232
+ version: '2.1'
230
233
  type: :development
231
234
  prerelease: false
232
235
  version_requirements: !ruby/object:Gem::Requirement
233
236
  requirements:
234
- - - '>='
237
+ - - ! '>='
235
238
  - !ruby/object:Gem::Version
236
239
  version: 1.1.2
240
+ - - <
241
+ - !ruby/object:Gem::Version
242
+ version: '2.1'
237
243
  - !ruby/object:Gem::Dependency
238
244
  name: rack-test
239
245
  requirement: !ruby/object:Gem::Requirement
240
246
  requirements:
241
- - - '>='
247
+ - - ! '>='
242
248
  - !ruby/object:Gem::Version
243
249
  version: 0.6.1
244
250
  type: :development
245
251
  prerelease: false
246
252
  version_requirements: !ruby/object:Gem::Requirement
247
253
  requirements:
248
- - - '>='
254
+ - - ! '>='
249
255
  - !ruby/object:Gem::Version
250
256
  version: 0.6.1
251
257
  - !ruby/object:Gem::Dependency
252
258
  name: ramaze
253
259
  requirement: !ruby/object:Gem::Requirement
254
260
  requirements:
255
- - - '>='
261
+ - - ! '>='
256
262
  - !ruby/object:Gem::Version
257
263
  version: '0'
258
264
  type: :development
259
265
  prerelease: false
260
266
  version_requirements: !ruby/object:Gem::Requirement
261
267
  requirements:
262
- - - '>='
268
+ - - ! '>='
263
269
  - !ruby/object:Gem::Version
264
270
  version: '0'
265
271
  - !ruby/object:Gem::Dependency
266
272
  name: sinatra
267
273
  requirement: !ruby/object:Gem::Requirement
268
274
  requirements:
269
- - - '>='
275
+ - - ! '>='
270
276
  - !ruby/object:Gem::Version
271
277
  version: 1.3.2
272
278
  type: :development
273
279
  prerelease: false
274
280
  version_requirements: !ruby/object:Gem::Requirement
275
281
  requirements:
276
- - - '>='
282
+ - - ! '>='
277
283
  - !ruby/object:Gem::Version
278
284
  version: 1.3.2
279
285
  - !ruby/object:Gem::Dependency
280
286
  name: webrat
281
287
  requirement: !ruby/object:Gem::Requirement
282
288
  requirements:
283
- - - '>='
289
+ - - ! '>='
284
290
  - !ruby/object:Gem::Version
285
291
  version: 0.7.3
286
292
  type: :development
287
293
  prerelease: false
288
294
  version_requirements: !ruby/object:Gem::Requirement
289
295
  requirements:
290
- - - '>='
296
+ - - ! '>='
291
297
  - !ruby/object:Gem::Version
292
298
  version: 0.7.3
293
299
  description: Behaviour Driven Development with elegance and joy
@@ -299,8 +305,10 @@ extra_rdoc_files: []
299
305
  files:
300
306
  - .gitattributes
301
307
  - .rspec
302
- - .rvmrc
308
+ - .ruby-gemset
309
+ - .ruby-version
303
310
  - .travis.yml
311
+ - .yardopts
304
312
  - CONTRIBUTING.md
305
313
  - Gemfile
306
314
  - History.md
@@ -536,6 +544,7 @@ files:
536
544
  - examples/tcl/features/step_definitions/fib_steps.rb
537
545
  - examples/tcl/features/support/env.rb
538
546
  - examples/tcl/src/fib.tcl
547
+ - examples/test_unit/Gemfile
539
548
  - examples/test_unit/Rakefile
540
549
  - examples/test_unit/features/step_definitions/test_unit_steps.rb
541
550
  - examples/test_unit/features/test_unit.feature
@@ -555,6 +564,7 @@ files:
555
564
  - features/assertions.feature
556
565
  - features/background.feature
557
566
  - features/backtraces.feature
567
+ - features/before_hook.feature
558
568
  - features/bootstrap.feature
559
569
  - features/custom_formatter.feature
560
570
  - features/doc_strings.feature
@@ -562,12 +572,16 @@ files:
562
572
  - features/execute_with_tag_filter.feature
563
573
  - features/formatter_callbacks.feature
564
574
  - features/formatter_step_file_colon_line.feature
565
- - features/hooks.feature
566
575
  - features/html_formatter.feature
567
576
  - features/iso-8859-1.feature
568
577
  - features/json_formatter.feature
578
+ - features/load_path.feature
569
579
  - features/nested_steps.feature
580
+ - features/nested_steps_i18n.feature
570
581
  - features/nested_steps_with_second_arg.feature
582
+ - features/pretty_formatter.feature
583
+ - features/progress_formatter.feature
584
+ - features/raketask.feature
571
585
  - features/rerun_formatter.feature
572
586
  - features/run_specific_scenarios.feature
573
587
  - features/stats_formatters.feature
@@ -664,6 +678,7 @@ files:
664
678
  - gem_tasks/yard/default/layout/html/layout.erb
665
679
  - gem_tasks/yard/default/layout/html/logo.erb
666
680
  - gem_tasks/yard/default/layout/html/setup.rb
681
+ - legacy_features/README.md
667
682
  - legacy_features/announce.feature
668
683
  - legacy_features/api/list_step_defs_as_json.feature
669
684
  - legacy_features/api/run_cli_main_with_existing_runtime.feature
@@ -673,7 +688,6 @@ files:
673
688
  - legacy_features/bug_475.feature
674
689
  - legacy_features/bug_585_tab_indentation.feature
675
690
  - legacy_features/bug_600.feature
676
- - legacy_features/call_steps_from_stepdefs.feature
677
691
  - legacy_features/cucumber_cli.feature
678
692
  - legacy_features/cucumber_cli_outlines.feature
679
693
  - legacy_features/default_snippets.feature
@@ -728,10 +742,12 @@ files:
728
742
  - lib/cucumber/ast/background.rb
729
743
  - lib/cucumber/ast/comment.rb
730
744
  - lib/cucumber/ast/doc_string.rb
745
+ - lib/cucumber/ast/empty_background.rb
731
746
  - lib/cucumber/ast/examples.rb
732
747
  - lib/cucumber/ast/feature.rb
733
748
  - lib/cucumber/ast/features.rb
734
749
  - lib/cucumber/ast/has_steps.rb
750
+ - lib/cucumber/ast/location.rb
735
751
  - lib/cucumber/ast/multiline_argument.rb
736
752
  - lib/cucumber/ast/names.rb
737
753
  - lib/cucumber/ast/outline_table.rb
@@ -787,6 +803,7 @@ files:
787
803
  - lib/cucumber/js_support/js_snippets.rb
788
804
  - lib/cucumber/language_support.rb
789
805
  - lib/cucumber/language_support/language_methods.rb
806
+ - lib/cucumber/load_path.rb
790
807
  - lib/cucumber/parser.rb
791
808
  - lib/cucumber/parser/gherkin_builder.rb
792
809
  - lib/cucumber/platform.rb
@@ -801,6 +818,7 @@ files:
801
818
  - lib/cucumber/rb_support/rb_transform.rb
802
819
  - lib/cucumber/rb_support/rb_world.rb
803
820
  - lib/cucumber/rb_support/regexp_argument_matcher.rb
821
+ - lib/cucumber/rb_support/snippet.rb
804
822
  - lib/cucumber/rspec/disable_option_parser.rb
805
823
  - lib/cucumber/rspec/doubles.rb
806
824
  - lib/cucumber/runtime.rb
@@ -814,6 +832,7 @@ files:
814
832
  - lib/cucumber/step_match.rb
815
833
  - lib/cucumber/step_mother.rb
816
834
  - lib/cucumber/term/ansicolor.rb
835
+ - lib/cucumber/unit.rb
817
836
  - lib/cucumber/wire_support/configuration.rb
818
837
  - lib/cucumber/wire_support/connection.rb
819
838
  - lib/cucumber/wire_support/request_handler.rb
@@ -827,6 +846,7 @@ files:
827
846
  - spec/cucumber/ast/doc_string_spec.rb
828
847
  - spec/cucumber/ast/feature_factory.rb
829
848
  - spec/cucumber/ast/feature_spec.rb
849
+ - spec/cucumber/ast/features_spec.rb
830
850
  - spec/cucumber/ast/outline_table_spec.rb
831
851
  - spec/cucumber/ast/scenario_outline_spec.rb
832
852
  - spec/cucumber/ast/step_spec.rb
@@ -846,6 +866,7 @@ files:
846
866
  - spec/cucumber/formatter/html_spec.rb
847
867
  - spec/cucumber/formatter/interceptor_spec.rb
848
868
  - spec/cucumber/formatter/junit_spec.rb
869
+ - spec/cucumber/formatter/pretty_spec.rb
849
870
  - spec/cucumber/formatter/progress_spec.rb
850
871
  - spec/cucumber/formatter/spec_helper.rb
851
872
  - spec/cucumber/rake/forked_spec.rb
@@ -854,6 +875,7 @@ files:
854
875
  - spec/cucumber/rb_support/rb_step_definition_spec.rb
855
876
  - spec/cucumber/rb_support/rb_transform_spec.rb
856
877
  - spec/cucumber/rb_support/regexp_argument_matcher_spec.rb
878
+ - spec/cucumber/rb_support/snippet_spec.rb
857
879
  - spec/cucumber/runtime/for_programming_languages_spec.rb
858
880
  - spec/cucumber/runtime/results_spec.rb
859
881
  - spec/cucumber/runtime/support_code_spec.rb
@@ -878,92 +900,19 @@ require_paths:
878
900
  - lib
879
901
  required_ruby_version: !ruby/object:Gem::Requirement
880
902
  requirements:
881
- - - '>='
903
+ - - ! '>='
882
904
  - !ruby/object:Gem::Version
883
905
  version: '0'
884
906
  required_rubygems_version: !ruby/object:Gem::Requirement
885
907
  requirements:
886
- - - '>='
908
+ - - ! '>='
887
909
  - !ruby/object:Gem::Version
888
910
  version: '0'
889
911
  requirements: []
890
912
  rubyforge_project:
891
- rubygems_version: 2.0.0
913
+ rubygems_version: 2.0.3
892
914
  signing_key:
893
915
  specification_version: 4
894
- summary: cucumber-1.2.5
895
- test_files:
896
- - features/assertions.feature
897
- - features/background.feature
898
- - features/backtraces.feature
899
- - features/bootstrap.feature
900
- - features/custom_formatter.feature
901
- - features/doc_strings.feature
902
- - features/drb_server_integration.feature
903
- - features/execute_with_tag_filter.feature
904
- - features/formatter_callbacks.feature
905
- - features/formatter_step_file_colon_line.feature
906
- - features/hooks.feature
907
- - features/html_formatter.feature
908
- - features/iso-8859-1.feature
909
- - features/json_formatter.feature
910
- - features/nested_steps.feature
911
- - features/nested_steps_with_second_arg.feature
912
- - features/rerun_formatter.feature
913
- - features/run_specific_scenarios.feature
914
- - features/stats_formatters.feature
915
- - features/step_definitions.feature
916
- - features/step_definitions/cucumber-features/cucumber_ruby_mappings.rb
917
- - features/step_definitions/cucumber_steps.rb
918
- - features/step_definitions/drb_steps.rb
919
- - features/step_definitions/iso-8859-1_steps.rb
920
- - features/support/env.rb
921
- - features/support/feature_factory.rb
922
- - features/tagged_hooks.feature
923
- - features/transforms.feature
924
- - spec/cucumber/ast/background_spec.rb
925
- - spec/cucumber/ast/doc_string_spec.rb
926
- - spec/cucumber/ast/feature_factory.rb
927
- - spec/cucumber/ast/feature_spec.rb
928
- - spec/cucumber/ast/outline_table_spec.rb
929
- - spec/cucumber/ast/scenario_outline_spec.rb
930
- - spec/cucumber/ast/step_spec.rb
931
- - spec/cucumber/ast/table_spec.rb
932
- - spec/cucumber/ast/tree_walker_spec.rb
933
- - spec/cucumber/broadcaster_spec.rb
934
- - spec/cucumber/cli/configuration_spec.rb
935
- - spec/cucumber/cli/drb_client_spec.rb
936
- - spec/cucumber/cli/main_spec.rb
937
- - spec/cucumber/cli/options_spec.rb
938
- - spec/cucumber/cli/profile_loader_spec.rb
939
- - spec/cucumber/configuration_spec.rb
940
- - spec/cucumber/constantize_spec.rb
941
- - spec/cucumber/core_ext/proc_spec.rb
942
- - spec/cucumber/formatter/ansicolor_spec.rb
943
- - spec/cucumber/formatter/duration_spec.rb
944
- - spec/cucumber/formatter/html_spec.rb
945
- - spec/cucumber/formatter/interceptor_spec.rb
946
- - spec/cucumber/formatter/junit_spec.rb
947
- - spec/cucumber/formatter/progress_spec.rb
948
- - spec/cucumber/formatter/spec_helper.rb
949
- - spec/cucumber/rake/forked_spec.rb
950
- - spec/cucumber/rake/rcov_spec.rb
951
- - spec/cucumber/rb_support/rb_language_spec.rb
952
- - spec/cucumber/rb_support/rb_step_definition_spec.rb
953
- - spec/cucumber/rb_support/rb_transform_spec.rb
954
- - spec/cucumber/rb_support/regexp_argument_matcher_spec.rb
955
- - spec/cucumber/runtime/for_programming_languages_spec.rb
956
- - spec/cucumber/runtime/results_spec.rb
957
- - spec/cucumber/runtime/support_code_spec.rb
958
- - spec/cucumber/runtime_spec.rb
959
- - spec/cucumber/sell_cucumbers.feature
960
- - spec/cucumber/step_match_spec.rb
961
- - spec/cucumber/wire_support/configuration_spec.rb
962
- - spec/cucumber/wire_support/connection_spec.rb
963
- - spec/cucumber/wire_support/wire_exception_spec.rb
964
- - spec/cucumber/wire_support/wire_language_spec.rb
965
- - spec/cucumber/wire_support/wire_packet_spec.rb
966
- - spec/cucumber/wire_support/wire_step_definition_spec.rb
967
- - spec/cucumber/world/pending_spec.rb
968
- - spec/spec_helper.rb
916
+ summary: cucumber-1.3.0
917
+ test_files: []
969
918
  has_rdoc: