cucumber 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/.rspec +1 -1
  2. data/LICENSE +1 -1
  3. data/Rakefile +5 -51
  4. data/bin/cucumber +7 -1
  5. data/cucumber.gemspec +463 -679
  6. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
  7. data/examples/i18n/he/features/step_definitons/calculator_steps.rb +1 -1
  8. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +4 -7
  9. data/examples/i18n/ru/features/division.feature +2 -2
  10. data/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +3 -3
  11. data/examples/sinatra/features/support/env.rb +2 -5
  12. data/examples/v8/features/fibonacci.feature +1 -1
  13. data/examples/watir/features/step_definitions/search_steps.rb +1 -1
  14. data/features/background.feature +284 -95
  15. data/features/custom_formatter.feature +3 -73
  16. data/features/json_formatter.feature +160 -245
  17. data/features/step_definitions/cucumber_steps.rb +7 -153
  18. data/features/support/env.rb +18 -140
  19. data/fixtures/junit/features/pending.feature +3 -1
  20. data/fixtures/self_test/features/support/env.rb +8 -0
  21. data/fixtures/tickets/features.html +1 -1
  22. data/gem_tasks/examples.rake +1 -1
  23. data/lib/cucumber.rb +12 -0
  24. data/lib/cucumber/ast.rb +1 -1
  25. data/lib/cucumber/ast/background.rb +21 -5
  26. data/lib/cucumber/ast/examples.rb +12 -4
  27. data/lib/cucumber/ast/feature.rb +13 -5
  28. data/lib/cucumber/ast/feature_element.rb +9 -4
  29. data/lib/cucumber/ast/outline_table.rb +4 -4
  30. data/lib/cucumber/ast/scenario.rb +7 -5
  31. data/lib/cucumber/ast/scenario_outline.rb +23 -15
  32. data/lib/cucumber/ast/step.rb +5 -0
  33. data/lib/cucumber/ast/step_invocation.rb +21 -15
  34. data/lib/cucumber/ast/table.rb +14 -8
  35. data/lib/cucumber/ast/tree_walker.rb +10 -48
  36. data/lib/cucumber/cli/configuration.rb +33 -8
  37. data/lib/cucumber/cli/main.rb +20 -35
  38. data/lib/cucumber/cli/options.rb +8 -7
  39. data/lib/cucumber/cli/profile_loader.rb +2 -0
  40. data/lib/cucumber/core_ext/proc.rb +2 -1
  41. data/lib/cucumber/feature_file.rb +47 -15
  42. data/lib/cucumber/formatter/ansicolor.rb +3 -5
  43. data/lib/cucumber/formatter/console.rb +27 -23
  44. data/lib/cucumber/formatter/cucumber.css +34 -17
  45. data/lib/cucumber/formatter/cucumber.sass +173 -182
  46. data/lib/cucumber/formatter/html.rb +46 -11
  47. data/lib/cucumber/formatter/io.rb +2 -4
  48. data/lib/cucumber/formatter/json.rb +15 -152
  49. data/lib/cucumber/formatter/json_pretty.rb +5 -6
  50. data/lib/cucumber/formatter/junit.rb +28 -22
  51. data/lib/cucumber/formatter/pdf.rb +6 -6
  52. data/lib/cucumber/formatter/pretty.rb +5 -5
  53. data/lib/cucumber/formatter/rerun.rb +22 -11
  54. data/lib/cucumber/formatter/unicode.rb +41 -20
  55. data/lib/cucumber/js_support/js_dsl.js +4 -4
  56. data/lib/cucumber/js_support/js_language.rb +9 -5
  57. data/lib/cucumber/js_support/js_snippets.rb +2 -2
  58. data/lib/cucumber/language_support.rb +2 -2
  59. data/lib/cucumber/parser/gherkin_builder.rb +35 -30
  60. data/lib/cucumber/platform.rb +8 -8
  61. data/lib/cucumber/py_support/py_language.rb +2 -2
  62. data/lib/cucumber/rake/task.rb +80 -31
  63. data/lib/cucumber/rb_support/rb_dsl.rb +1 -0
  64. data/lib/cucumber/rb_support/rb_language.rb +10 -8
  65. data/lib/cucumber/rb_support/rb_step_definition.rb +8 -0
  66. data/lib/cucumber/rb_support/rb_transform.rb +17 -0
  67. data/lib/cucumber/rb_support/rb_world.rb +26 -18
  68. data/lib/cucumber/rspec/doubles.rb +3 -3
  69. data/lib/cucumber/step_match.rb +6 -2
  70. data/lib/cucumber/step_mother.rb +6 -427
  71. data/lib/cucumber/wire_support/configuration.rb +4 -1
  72. data/lib/cucumber/wire_support/wire_language.rb +3 -10
  73. data/spec/cucumber/ast/background_spec.rb +68 -6
  74. data/spec/cucumber/ast/feature_factory.rb +5 -4
  75. data/spec/cucumber/ast/feature_spec.rb +4 -4
  76. data/spec/cucumber/ast/outline_table_spec.rb +1 -1
  77. data/spec/cucumber/ast/scenario_outline_spec.rb +15 -11
  78. data/spec/cucumber/ast/scenario_spec.rb +4 -4
  79. data/spec/cucumber/ast/step_spec.rb +3 -3
  80. data/spec/cucumber/ast/table_spec.rb +38 -2
  81. data/spec/cucumber/ast/tree_walker_spec.rb +2 -2
  82. data/spec/cucumber/broadcaster_spec.rb +1 -1
  83. data/spec/cucumber/cli/configuration_spec.rb +32 -6
  84. data/spec/cucumber/cli/drb_client_spec.rb +2 -3
  85. data/spec/cucumber/cli/main_spec.rb +43 -43
  86. data/spec/cucumber/cli/options_spec.rb +28 -1
  87. data/spec/cucumber/cli/profile_loader_spec.rb +1 -1
  88. data/spec/cucumber/core_ext/proc_spec.rb +1 -1
  89. data/spec/cucumber/formatter/ansicolor_spec.rb +1 -1
  90. data/spec/cucumber/formatter/duration_spec.rb +1 -1
  91. data/spec/cucumber/formatter/html_spec.rb +3 -5
  92. data/spec/cucumber/formatter/junit_spec.rb +16 -2
  93. data/spec/cucumber/formatter/progress_spec.rb +1 -1
  94. data/spec/cucumber/formatter/spec_helper.rb +11 -12
  95. data/spec/cucumber/rb_support/rb_language_spec.rb +241 -28
  96. data/spec/cucumber/rb_support/rb_step_definition_spec.rb +33 -28
  97. data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +1 -1
  98. data/spec/cucumber/step_match_spec.rb +11 -9
  99. data/spec/cucumber/wire_support/configuration_spec.rb +1 -1
  100. data/spec/cucumber/wire_support/connection_spec.rb +1 -1
  101. data/spec/cucumber/wire_support/wire_exception_spec.rb +1 -1
  102. data/spec/cucumber/wire_support/wire_language_spec.rb +1 -1
  103. data/spec/cucumber/wire_support/wire_packet_spec.rb +1 -1
  104. data/spec/cucumber/wire_support/wire_step_definition_spec.rb +1 -1
  105. data/spec/cucumber/world/pending_spec.rb +2 -2
  106. data/spec/spec_helper.rb +13 -20
  107. metadata +11 -222
  108. data/.gitignore +0 -20
  109. data/Caliper.yml +0 -4
  110. data/History.txt +0 -1552
  111. data/README.rdoc +0 -26
  112. data/VERSION.yml +0 -5
  113. data/examples/i18n/ro/features/suma.feature +0 -11
  114. data/features/announce.feature +0 -164
  115. data/features/around_hooks.feature +0 -232
  116. data/features/bug_371.feature +0 -32
  117. data/features/bug_464.feature +0 -16
  118. data/features/bug_475.feature +0 -42
  119. data/features/bug_585_tab_indentation.feature +0 -22
  120. data/features/bug_600.feature +0 -67
  121. data/features/call_steps_from_stepdefs.feature +0 -154
  122. data/features/cucumber_cli.feature +0 -591
  123. data/features/cucumber_cli_outlines.feature +0 -117
  124. data/features/default_snippets.feature +0 -42
  125. data/features/diffing.feature +0 -25
  126. data/features/drb_server_integration.feature +0 -174
  127. data/features/exception_in_after_block.feature +0 -127
  128. data/features/exception_in_after_step_block.feature +0 -104
  129. data/features/exception_in_before_block.feature +0 -98
  130. data/features/exclude_files.feature +0 -20
  131. data/features/expand.feature +0 -60
  132. data/features/html_formatter.feature +0 -8
  133. data/features/html_formatter/a.html +0 -582
  134. data/features/junit_formatter.feature +0 -88
  135. data/features/language_from_header.feature +0 -30
  136. data/features/language_help.feature +0 -78
  137. data/features/listener_debugger_formatter.feature +0 -42
  138. data/features/multiline_names.feature +0 -44
  139. data/features/negative_tagged_hooks.feature +0 -60
  140. data/features/post_configuration_hook.feature +0 -37
  141. data/features/profiles.feature +0 -126
  142. data/features/rake_task.feature +0 -152
  143. data/features/report_called_undefined_steps.feature +0 -34
  144. data/features/rerun_formatter.feature +0 -45
  145. data/features/simplest.feature +0 -11
  146. data/features/snippet.feature +0 -23
  147. data/features/snippets_when_using_star_keyword.feature +0 -36
  148. data/features/step_definitions/extra_steps.rb +0 -2
  149. data/features/step_definitions/simplest_steps.rb +0 -3
  150. data/features/step_definitions/wire_steps.rb +0 -32
  151. data/features/support/env.rb.simplest +0 -7
  152. data/features/support/fake_wire_server.rb +0 -77
  153. data/features/table_diffing.feature +0 -45
  154. data/features/table_mapping.feature +0 -34
  155. data/features/tag_logic.feature +0 -258
  156. data/features/transform.feature +0 -245
  157. data/features/unicode_table.feature +0 -35
  158. data/features/usage_and_stepdefs_formatter.feature +0 -169
  159. data/features/wire_protocol.feature +0 -332
  160. data/features/wire_protocol_table_diffing.feature +0 -119
  161. data/features/wire_protocol_tags.feature +0 -87
  162. data/features/wire_protocol_timeouts.feature +0 -63
  163. data/features/work_in_progress.feature +0 -156
  164. data/fixtures/json/features/pystring.feature +0 -8
  165. data/fixtures/self_test/features/background/background_tagged_before_on_outline.feature +0 -12
  166. data/fixtures/self_test/features/background/background_with_name.feature +0 -7
  167. data/fixtures/self_test/features/background/failing_background.feature +0 -12
  168. data/fixtures/self_test/features/background/failing_background_after_success.feature +0 -11
  169. data/fixtures/self_test/features/background/multiline_args_background.feature +0 -32
  170. data/fixtures/self_test/features/background/passing_background.feature +0 -10
  171. data/fixtures/self_test/features/background/pending_background.feature +0 -10
  172. data/fixtures/self_test/features/background/scenario_outline_failing_background.feature +0 -16
  173. data/fixtures/self_test/features/background/scenario_outline_passing_background.feature +0 -16
  174. data/gem_tasks/features.rake +0 -14
  175. data/gem_tasks/sdoc.rake +0 -12
  176. data/lib/cucumber/ast/py_string.rb +0 -80
  177. data/lib/cucumber/formatter/color_io.rb +0 -23
  178. data/lib/cucumber/formatter/tag_cloud.rb +0 -35
  179. data/spec/cucumber/ast/py_string_spec.rb +0 -40
  180. data/spec/cucumber/formatter/color_io_spec.rb +0 -29
  181. data/spec/cucumber/step_mother_spec.rb +0 -302
@@ -1,5 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
2
-
1
+ require 'spec_helper'
3
2
  require 'cucumber/ast'
4
3
  require 'cucumber/step_mother'
5
4
  require 'cucumber/rb_support/rb_language'
@@ -7,86 +6,92 @@ require 'cucumber/rb_support/rb_language'
7
6
  module Cucumber
8
7
  module RbSupport
9
8
  describe RbStepDefinition do
9
+ let(:user_interface) { double('user interface') }
10
+ let(:support_code) { Cucumber::Runtime::SupportCode.new(user_interface) }
11
+ let(:rb) { support_code.load_programming_language('rb')}
12
+ let(:dsl) do
13
+ rb
14
+ Object.new.extend(Cucumber::RbSupport::RbDsl)
15
+ end
16
+
10
17
  before do
11
- @step_mother = Cucumber::StepMother.new
12
- @rb = @step_mother.load_programming_language('rb')
13
- @dsl = Object.new
14
- @dsl.extend Cucumber::RbSupport::RbDsl
15
- @step_mother.before(mock('scenario').as_null_object)
18
+ rb.before(mock('scenario').as_null_object)
16
19
 
17
20
  $inside = nil
18
21
  end
19
22
 
20
23
  it "should allow calling of other steps" do
21
- @dsl.Given /Outside/ do
24
+ dsl.Given /Outside/ do
22
25
  Given "Inside"
23
26
  end
24
- @dsl.Given /Inside/ do
27
+ dsl.Given /Inside/ do
25
28
  $inside = true
26
29
  end
27
30
 
28
- @step_mother.step_match("Outside").invoke(nil)
31
+ support_code.step_match("Outside").invoke(nil)
29
32
  $inside.should == true
30
33
  end
31
34
 
32
35
  it "should allow calling of other steps with inline arg" do
33
- @dsl.Given /Outside/ do
36
+ dsl.Given /Outside/ do
34
37
  Given "Inside", Cucumber::Ast::Table.new([['inside']])
35
38
  end
36
- @dsl.Given /Inside/ do |table|
39
+ dsl.Given /Inside/ do |table|
37
40
  $inside = table.raw[0][0]
38
41
  end
39
42
 
40
- @step_mother.step_match("Outside").invoke(nil)
43
+ support_code.step_match("Outside").invoke(nil)
41
44
  $inside.should == 'inside'
42
45
  end
43
46
 
44
47
  it "should raise Undefined when inside step is not defined" do
45
- @dsl.Given /Outside/ do
48
+ dsl.Given /Outside/ do
46
49
  Given 'Inside'
47
50
  end
48
51
 
49
52
  lambda do
50
- @step_mother.step_match('Outside').invoke(nil)
53
+ support_code.step_match('Outside').invoke(nil)
51
54
  end.should raise_error(Cucumber::Undefined, 'Undefined step: "Inside"')
52
55
  end
53
56
 
54
57
  it "should allow forced pending" do
55
- @dsl.Given /Outside/ do
58
+ dsl.Given /Outside/ do
56
59
  pending("Do me!")
57
60
  end
58
61
 
59
62
  lambda do
60
- @step_mother.step_match("Outside").invoke(nil)
63
+ support_code.step_match("Outside").invoke(nil)
61
64
  end.should raise_error(Cucumber::Pending, "Do me!")
62
65
  end
63
66
 
64
67
  it "should raise ArityMismatchError when the number of capture groups differs from the number of step arguments" do
65
- @dsl.Given /No group: \w+/ do |arg|
68
+ dsl.Given /No group: \w+/ do |arg|
66
69
  end
67
70
 
68
71
  lambda do
69
- @step_mother.step_match("No group: arg").invoke(nil)
72
+ support_code.step_match("No group: arg").invoke(nil)
70
73
  end.should raise_error(Cucumber::ArityMismatchError)
71
74
  end
72
75
 
73
- it "should allow announce" do
74
- v = mock('visitor')
75
- v.should_receive(:announce).with('wasup')
76
- @step_mother.visitor = v
77
- @dsl.Given /Loud/ do
78
- announce 'wasup'
76
+ it "should allow puts" do
77
+ user_interface.should_receive(:puts).with('wasup')
78
+ dsl.Given /Loud/ do
79
+ puts 'wasup'
79
80
  end
80
81
 
81
- @step_mother.step_match("Loud").invoke(nil)
82
+ support_code.step_match("Loud").invoke(nil)
82
83
  end
83
84
 
84
85
  it "should recognize $arg style captures" do
85
- @dsl.Given "capture this: $arg" do |arg|
86
+ dsl.Given "capture this: $arg" do |arg|
86
87
  arg.should == 'this'
87
88
  end
88
89
 
89
- @step_mother.step_match('capture this: this').invoke(nil)
90
+ support_code.step_match('capture this: this').invoke(nil)
91
+ end
92
+
93
+ it "should have a JSON representation of the signature" do
94
+ RbStepDefinition.new(rb, /I CAN HAZ (\d+) CUKES/i, lambda{}).to_hash.should == {'source' => "I CAN HAZ (\\d+) CUKES", 'flags' => 'i'}
90
95
  end
91
96
  end
92
97
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/rb_support/regexp_argument_matcher'
3
3
 
4
4
  module Cucumber
@@ -1,10 +1,12 @@
1
1
  # encoding: utf-8
2
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
+ require 'spec_helper'
3
3
  require 'cucumber/rb_support/rb_step_definition'
4
4
  require 'cucumber/rb_support/rb_language'
5
5
 
6
6
  module Cucumber
7
7
  describe StepMatch do
8
+ WORD = Cucumber::RUBY_1_9 ? '[[:word:]]' : '\w'
9
+
8
10
  before do
9
11
  @rb_language = RbSupport::RbLanguage.new(nil)
10
12
  end
@@ -19,38 +21,38 @@ module Cucumber
19
21
  end
20
22
 
21
23
  it "should format one group when we use Unicode" do
22
- m = step_match(/I (\w+) ok/, "I æøåÆØÅæøåÆØÅæøåÆØÅæøåÆØÅ ok")
24
+ m = step_match(/I (#{WORD}+) ok/, "I æøåÆØÅæøåÆØÅæøåÆØÅæøåÆØÅ ok")
23
25
  m.format_args("<span>%s</span>").should == "I <span>æøåÆØÅæøåÆØÅæøåÆØÅæøåÆØÅ</span> ok"
24
26
  end
25
27
 
26
28
  it "should format several groups when we use Unicode" do
27
- m = step_match(/I (\w+) (\w+) (\w+) this (\w+)/, "I ate æøåÆØÅæøåÆØÅæøåÆØÅæøåÆØÅ egg this morning")
29
+ m = step_match(/I (#{WORD}+) (#{WORD}+) (#{WORD}+) this (#{WORD}+)/, "I ate æøåÆØÅæøåÆØÅæøåÆØÅæøåÆØÅ egg this morning")
28
30
  m.format_args("<span>%s</span>").should == "I <span>ate</span> <span>æøåÆØÅæøåÆØÅæøåÆØÅæøåÆØÅ</span> <span>egg</span> this <span>morning</span>"
29
31
  end
30
32
 
31
33
  it "should deal with Unicode both inside and outside arguments" do
32
- "Jæ vø ålsker døtte løndet".should =~ /Jæ (\w+) ålsker (\w+) løndet/
33
- m = step_match(/Jæ (\w+) ålsker (\w+) løndet/, "Jæ vø ålsker døtte løndet")
34
+ "Jæ vø ålsker døtte løndet".should =~ /Jæ (.+) ålsker (.+) løndet/
35
+ m = step_match(/Jæ (#{WORD}+) ålsker (#{WORD}+) løndet/, "Jæ vø ålsker døtte løndet")
34
36
  m.format_args("<span>%s</span>").should == "Jæ <span>vø</span> ålsker <span>døtte</span> løndet"
35
37
  end
36
38
 
37
39
  it "should format groups with format string" do
38
- m = step_match(/I (\w+) (\d+) (\w+) this (\w+)/, "I ate 1 egg this morning")
40
+ m = step_match(/I (#{WORD}+) (\d+) (#{WORD}+) this (#{WORD}+)/, "I ate 1 egg this morning")
39
41
  m.format_args("<span>%s</span>").should == "I <span>ate</span> <span>1</span> <span>egg</span> this <span>morning</span>"
40
42
  end
41
43
 
42
44
  it "should format groups with format string when there are dupes" do
43
- m = step_match(/I (\w+) (\d+) (\w+) this (\w+)/, "I bob 1 bo this bobs")
45
+ m = step_match(/I (#{WORD}+) (\d+) (#{WORD}+) this (#{WORD}+)/, "I bob 1 bo this bobs")
44
46
  m.format_args("<span>%s</span>").should == "I <span>bob</span> <span>1</span> <span>bo</span> this <span>bobs</span>"
45
47
  end
46
48
 
47
49
  it "should format groups with block" do
48
- m = step_match(/I (\w+) (\d+) (\w+) this (\w+)/, "I ate 1 egg this morning")
50
+ m = step_match(/I (#{WORD}+) (\d+) (#{WORD}+) this (#{WORD}+)/, "I ate 1 egg this morning")
49
51
  m.format_args(&lambda{|m| "<span>#{m}</span>"}).should == "I <span>ate</span> <span>1</span> <span>egg</span> this <span>morning</span>"
50
52
  end
51
53
 
52
54
  it "should format groups with proc object" do
53
- m = step_match(/I (\w+) (\d+) (\w+) this (\w+)/, "I ate 1 egg this morning")
55
+ m = step_match(/I (#{WORD}+) (\d+) (#{WORD}+) this (#{WORD}+)/, "I ate 1 egg this morning")
54
56
  m.format_args(lambda{|m| "<span>#{m}</span>"}).should == "I <span>ate</span> <span>1</span> <span>egg</span> this <span>morning</span>"
55
57
  end
56
58
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/wire_support/wire_language'
3
3
  require 'tempfile'
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/wire_support/wire_language'
3
3
 
4
4
  module Cucumber
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/wire_support/wire_language'
3
3
 
4
4
  module Cucumber
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/wire_support/wire_language'
3
3
 
4
4
  module Cucumber
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/wire_support/wire_language'
3
3
 
4
4
  module Cucumber
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/wire_support/wire_language'
3
3
 
4
4
  module Cucumber
@@ -1,11 +1,11 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
1
+ require 'spec_helper'
2
2
  require 'cucumber/rb_support/rb_language'
3
3
 
4
4
  module Cucumber
5
5
  describe 'Pending' do
6
6
 
7
7
  before(:each) do
8
- l = RbSupport::RbLanguage.new(StepMother.new)
8
+ l = RbSupport::RbLanguage.new(Runtime.new)
9
9
  l.begin_rb_scenario(mock('scenario').as_null_object)
10
10
  @world = l.current_world
11
11
  end
data/spec/spec_helper.rb CHANGED
@@ -2,28 +2,21 @@ ENV['CUCUMBER_COLORS']=nil
2
2
  $:.unshift(File.dirname(__FILE__) + '/../lib')
3
3
  $:.unshift(File.dirname(__FILE__))
4
4
 
5
- require 'rubygems'
6
-
7
- begin
8
- require 'rspec'
9
- require 'rspec/autorun'
10
- RSpec.configure do |c|
11
- c.color_enabled = true
12
- c.before(:each) do
13
- ::Term::ANSIColor.coloring = true
14
- end
15
- end
16
- rescue LoadError
17
- require 'spec'
18
- require 'spec/autorun'
19
- Spec::Runner.configure do |c|
20
- c.before(:each) do
21
- ::Term::ANSIColor.coloring = true
22
- end
23
- end
5
+ # For Travis....
6
+ if defined? Encoding
7
+ Encoding.default_external = 'utf-8'
8
+ Encoding.default_internal = 'utf-8'
24
9
  end
25
10
 
11
+ require 'rubygems'
12
+ require 'bundler'
13
+ Bundler.setup
14
+
26
15
  require 'cucumber'
27
16
  $KCODE='u' unless Cucumber::RUBY_1_9
28
17
 
29
- alias running lambda
18
+ RSpec.configure do |c|
19
+ c.before do
20
+ ::Term::ANSIColor.coloring = true
21
+ end
22
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
5
- prerelease: false
4
+ hash: 51
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 5
10
- version: 0.8.5
9
+ - 6
10
+ version: 0.8.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Aslak Helles\xC3\xB8y"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-14 00:00:00 +02:00
18
+ date: 2011-06-19 00:00:00 +01:00
19
19
  default_executable: cucumber
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -204,17 +204,11 @@ extensions: []
204
204
 
205
205
  extra_rdoc_files:
206
206
  - LICENSE
207
- - README.rdoc
208
207
  files:
209
208
  - .gitattributes
210
- - .gitignore
211
209
  - .rspec
212
- - Caliper.yml
213
- - History.txt
214
210
  - LICENSE
215
- - README.rdoc
216
211
  - Rakefile
217
- - VERSION.yml
218
212
  - bin/cucumber
219
213
  - cucumber.gemspec
220
214
  - cucumber.yml
@@ -349,7 +343,6 @@ files:
349
343
  - examples/i18n/pt/lib/calculadora.rb
350
344
  - examples/i18n/ro/Rakefile
351
345
  - examples/i18n/ro/features/step_definitons/calculator_steps.rb
352
- - examples/i18n/ro/features/suma.feature
353
346
  - examples/i18n/ro/lib/calculator.rb
354
347
  - examples/i18n/ru/Rakefile
355
348
  - examples/i18n/ru/features/addition.feature
@@ -465,65 +458,14 @@ files:
465
458
  - examples/watir/features/step_definitions/search_steps.rb
466
459
  - examples/watir/features/support/env.rb
467
460
  - examples/watir/features/support/screenshots.rb
468
- - features/announce.feature
469
- - features/around_hooks.feature
470
461
  - features/background.feature
471
- - features/bug_371.feature
472
- - features/bug_464.feature
473
- - features/bug_475.feature
474
- - features/bug_585_tab_indentation.feature
475
- - features/bug_600.feature
476
- - features/call_steps_from_stepdefs.feature
477
- - features/cucumber_cli.feature
478
- - features/cucumber_cli_outlines.feature
479
462
  - features/custom_formatter.feature
480
- - features/default_snippets.feature
481
- - features/diffing.feature
482
- - features/drb_server_integration.feature
483
- - features/exception_in_after_block.feature
484
- - features/exception_in_after_step_block.feature
485
- - features/exception_in_before_block.feature
486
- - features/exclude_files.feature
487
- - features/expand.feature
488
- - features/html_formatter.feature
489
- - features/html_formatter/a.html
490
463
  - features/json_formatter.feature
491
- - features/junit_formatter.feature
492
- - features/language_from_header.feature
493
- - features/language_help.feature
494
- - features/listener_debugger_formatter.feature
495
- - features/multiline_names.feature
496
- - features/negative_tagged_hooks.feature
497
- - features/post_configuration_hook.feature
498
- - features/profiles.feature
499
- - features/rake_task.feature
500
- - features/report_called_undefined_steps.feature
501
- - features/rerun_formatter.feature
502
- - features/simplest.feature
503
- - features/snippet.feature
504
- - features/snippets_when_using_star_keyword.feature
505
464
  - features/step_definitions/cucumber_steps.rb
506
- - features/step_definitions/extra_steps.rb
507
- - features/step_definitions/simplest_steps.rb
508
- - features/step_definitions/wire_steps.rb
509
465
  - features/support/env.rb
510
- - features/support/env.rb.simplest
511
- - features/support/fake_wire_server.rb
512
- - features/table_diffing.feature
513
- - features/table_mapping.feature
514
- - features/tag_logic.feature
515
- - features/transform.feature
516
- - features/unicode_table.feature
517
- - features/usage_and_stepdefs_formatter.feature
518
- - features/wire_protocol.feature
519
- - features/wire_protocol_table_diffing.feature
520
- - features/wire_protocol_tags.feature
521
- - features/wire_protocol_timeouts.feature
522
- - features/work_in_progress.feature
523
466
  - fixtures/json/features/background.feature
524
467
  - fixtures/json/features/embed.feature
525
468
  - fixtures/json/features/one_passing_one_failing.feature
526
- - fixtures/json/features/pystring.feature
527
469
  - fixtures/json/features/step_definitions/steps.rb
528
470
  - fixtures/json/features/tables.feature
529
471
  - fixtures/junit/features/one_passing_one_failing.feature
@@ -532,15 +474,6 @@ files:
532
474
  - fixtures/self_test/.gitignore
533
475
  - fixtures/self_test/README.textile
534
476
  - fixtures/self_test/Rakefile
535
- - fixtures/self_test/features/background/background_tagged_before_on_outline.feature
536
- - fixtures/self_test/features/background/background_with_name.feature
537
- - fixtures/self_test/features/background/failing_background.feature
538
- - fixtures/self_test/features/background/failing_background_after_success.feature
539
- - fixtures/self_test/features/background/multiline_args_background.feature
540
- - fixtures/self_test/features/background/passing_background.feature
541
- - fixtures/self_test/features/background/pending_background.feature
542
- - fixtures/self_test/features/background/scenario_outline_failing_background.feature
543
- - fixtures/self_test/features/background/scenario_outline_passing_background.feature
544
477
  - fixtures/self_test/features/call_undefined_step_from_step_def.feature
545
478
  - fixtures/self_test/features/failing_expectation.feature
546
479
  - fixtures/self_test/features/lots_of_undefined.feature
@@ -597,12 +530,10 @@ files:
597
530
  - gem_tasks/contributors.rake
598
531
  - gem_tasks/environment.rake
599
532
  - gem_tasks/examples.rake
600
- - gem_tasks/features.rake
601
533
  - gem_tasks/fix_cr_lf.rake
602
534
  - gem_tasks/flog.rake
603
535
  - gem_tasks/rspec.rake
604
536
  - gem_tasks/sass.rake
605
- - gem_tasks/sdoc.rake
606
537
  - lib/README.rdoc
607
538
  - lib/autotest/cucumber.rb
608
539
  - lib/autotest/cucumber_mixin.rb
@@ -621,7 +552,6 @@ files:
621
552
  - lib/cucumber/ast/feature_element.rb
622
553
  - lib/cucumber/ast/features.rb
623
554
  - lib/cucumber/ast/outline_table.rb
624
- - lib/cucumber/ast/py_string.rb
625
555
  - lib/cucumber/ast/scenario.rb
626
556
  - lib/cucumber/ast/scenario_outline.rb
627
557
  - lib/cucumber/ast/step.rb
@@ -643,7 +573,6 @@ files:
643
573
  - lib/cucumber/core_ext/string.rb
644
574
  - lib/cucumber/feature_file.rb
645
575
  - lib/cucumber/formatter/ansicolor.rb
646
- - lib/cucumber/formatter/color_io.rb
647
576
  - lib/cucumber/formatter/console.rb
648
577
  - lib/cucumber/formatter/cucumber.css
649
578
  - lib/cucumber/formatter/cucumber.sass
@@ -663,7 +592,6 @@ files:
663
592
  - lib/cucumber/formatter/stepdefs.rb
664
593
  - lib/cucumber/formatter/steps.rb
665
594
  - lib/cucumber/formatter/summary.rb
666
- - lib/cucumber/formatter/tag_cloud.rb
667
595
  - lib/cucumber/formatter/unicode.rb
668
596
  - lib/cucumber/formatter/usage.rb
669
597
  - lib/cucumber/js_support/js_dsl.js
@@ -704,7 +632,6 @@ files:
704
632
  - spec/cucumber/ast/feature_factory.rb
705
633
  - spec/cucumber/ast/feature_spec.rb
706
634
  - spec/cucumber/ast/outline_table_spec.rb
707
- - spec/cucumber/ast/py_string_spec.rb
708
635
  - spec/cucumber/ast/scenario_outline_spec.rb
709
636
  - spec/cucumber/ast/scenario_spec.rb
710
637
  - spec/cucumber/ast/step_spec.rb
@@ -718,7 +645,6 @@ files:
718
645
  - spec/cucumber/cli/profile_loader_spec.rb
719
646
  - spec/cucumber/core_ext/proc_spec.rb
720
647
  - spec/cucumber/formatter/ansicolor_spec.rb
721
- - spec/cucumber/formatter/color_io_spec.rb
722
648
  - spec/cucumber/formatter/duration_spec.rb
723
649
  - spec/cucumber/formatter/html_spec.rb
724
650
  - spec/cucumber/formatter/junit_spec.rb
@@ -729,7 +655,6 @@ files:
729
655
  - spec/cucumber/rb_support/regexp_argument_matcher_spec.rb
730
656
  - spec/cucumber/sell_cucumbers.feature
731
657
  - spec/cucumber/step_match_spec.rb
732
- - spec/cucumber/step_mother_spec.rb
733
658
  - spec/cucumber/wire_support/configuration_spec.rb
734
659
  - spec/cucumber/wire_support/connection_spec.rb
735
660
  - spec/cucumber/wire_support/wire_exception_spec.rb
@@ -748,14 +673,14 @@ post_install_message: |+
748
673
 
749
674
  (::) U P G R A D I N G (::)
750
675
 
751
- Thank you for installing cucumber-0.8.5.
676
+ Thank you for installing cucumber-0.8.6.
752
677
  Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
753
678
  for important information about this release. Happy cuking!
754
679
 
755
680
  (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
756
681
 
757
- rdoc_options:
758
- - --charset=UTF-8
682
+ rdoc_options: []
683
+
759
684
  require_paths:
760
685
  - lib
761
686
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -779,145 +704,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
779
704
  requirements: []
780
705
 
781
706
  rubyforge_project:
782
- rubygems_version: 1.3.7
707
+ rubygems_version: 1.6.2
783
708
  signing_key:
784
709
  specification_version: 3
785
710
  summary: Behaviour Driven Development with elegance and joy
786
- test_files:
787
- - spec/cucumber/ast/background_spec.rb
788
- - spec/cucumber/ast/feature_factory.rb
789
- - spec/cucumber/ast/feature_spec.rb
790
- - spec/cucumber/ast/outline_table_spec.rb
791
- - spec/cucumber/ast/py_string_spec.rb
792
- - spec/cucumber/ast/scenario_outline_spec.rb
793
- - spec/cucumber/ast/scenario_spec.rb
794
- - spec/cucumber/ast/step_spec.rb
795
- - spec/cucumber/ast/table_spec.rb
796
- - spec/cucumber/ast/tree_walker_spec.rb
797
- - spec/cucumber/broadcaster_spec.rb
798
- - spec/cucumber/cli/configuration_spec.rb
799
- - spec/cucumber/cli/drb_client_spec.rb
800
- - spec/cucumber/cli/main_spec.rb
801
- - spec/cucumber/cli/options_spec.rb
802
- - spec/cucumber/cli/profile_loader_spec.rb
803
- - spec/cucumber/core_ext/proc_spec.rb
804
- - spec/cucumber/formatter/ansicolor_spec.rb
805
- - spec/cucumber/formatter/color_io_spec.rb
806
- - spec/cucumber/formatter/duration_spec.rb
807
- - spec/cucumber/formatter/html_spec.rb
808
- - spec/cucumber/formatter/junit_spec.rb
809
- - spec/cucumber/formatter/progress_spec.rb
810
- - spec/cucumber/formatter/spec_helper.rb
811
- - spec/cucumber/rb_support/rb_language_spec.rb
812
- - spec/cucumber/rb_support/rb_step_definition_spec.rb
813
- - spec/cucumber/rb_support/regexp_argument_matcher_spec.rb
814
- - spec/cucumber/step_match_spec.rb
815
- - spec/cucumber/step_mother_spec.rb
816
- - spec/cucumber/wire_support/configuration_spec.rb
817
- - spec/cucumber/wire_support/connection_spec.rb
818
- - spec/cucumber/wire_support/wire_exception_spec.rb
819
- - spec/cucumber/wire_support/wire_language_spec.rb
820
- - spec/cucumber/wire_support/wire_packet_spec.rb
821
- - spec/cucumber/wire_support/wire_step_definition_spec.rb
822
- - spec/cucumber/world/pending_spec.rb
823
- - spec/spec_helper.rb
824
- - examples/i18n/ar/features/step_definitons/calculator_steps.rb
825
- - examples/i18n/ar/lib/calculator.rb
826
- - examples/i18n/bg/features/step_definitons/calculator_steps.rb
827
- - examples/i18n/bg/features/support/env.rb
828
- - examples/i18n/bg/features/support/world.rb
829
- - examples/i18n/bg/lib/calculator.rb
830
- - examples/i18n/ca/features/step_definitons/calculator_steps.rb
831
- - examples/i18n/ca/lib/calculadora.rb
832
- - examples/i18n/da/features/step_definitons/lommeregner_steps.rb
833
- - examples/i18n/da/lib/lommeregner.rb
834
- - examples/i18n/de/features/step_definitons/calculator_steps.rb
835
- - examples/i18n/de/lib/calculator.rb
836
- - examples/i18n/en/features/step_definitons/calculator_steps.rb
837
- - examples/i18n/en/lib/calculator.rb
838
- - examples/i18n/en-lol/features/step_definitions/cucumbrz_steps.rb
839
- - examples/i18n/en-lol/features/support/env.rb
840
- - examples/i18n/en-lol/lib/basket.rb
841
- - examples/i18n/en-lol/lib/belly.rb
842
- - examples/i18n/eo/features/step_definitons/calculator_steps.rb
843
- - examples/i18n/eo/lib/calculator.rb
844
- - examples/i18n/es/features/step_definitons/calculador_steps.rb
845
- - examples/i18n/es/lib/calculador.rb
846
- - examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
847
- - examples/i18n/et/lib/kalkulaator.rb
848
- - examples/i18n/fi/features/step_definitons/laskin_steps.rb
849
- - examples/i18n/fi/lib/laskin.rb
850
- - examples/i18n/fr/features/step_definitions/calculatrice_steps.rb
851
- - examples/i18n/fr/features/support/env.rb
852
- - examples/i18n/fr/lib/calculatrice.rb
853
- - examples/i18n/he/features/step_definitons/calculator_steps.rb
854
- - examples/i18n/he/lib/calculator.rb
855
- - examples/i18n/hu/features/step_definitons/calculator_steps.rb
856
- - examples/i18n/hu/lib/calculator.rb
857
- - examples/i18n/id/features/step_definitons/calculator_steps.rb
858
- - examples/i18n/id/lib/calculator.rb
859
- - examples/i18n/it/features/step_definitons/calcolatrice_steps.rb
860
- - examples/i18n/it/lib/calcolatrice.rb
861
- - examples/i18n/ja/features/step_definitons/calculator_steps.rb
862
- - examples/i18n/ja/features/support/env.rb
863
- - examples/i18n/ja/lib/calculator.rb
864
- - examples/i18n/ko/features/step_definitons/calculator_steps.rb
865
- - examples/i18n/ko/lib/calculator.rb
866
- - examples/i18n/lt/features/step_definitons/calculator_steps.rb
867
- - examples/i18n/lt/lib/calculator.rb
868
- - examples/i18n/lv/features/step_definitons/calculator_steps.rb
869
- - examples/i18n/lv/lib/calculator.rb
870
- - examples/i18n/no/features/step_definitons/kalkulator_steps.rb
871
- - examples/i18n/no/features/support/env.rb
872
- - examples/i18n/no/lib/kalkulator.rb
873
- - examples/i18n/pl/features/step_definitons/calculator_steps.rb
874
- - examples/i18n/pl/features/support/env.rb
875
- - examples/i18n/pl/lib/calculator.rb
876
- - examples/i18n/pt/features/step_definitions/calculadora_steps.rb
877
- - examples/i18n/pt/features/support/env.rb
878
- - examples/i18n/pt/lib/calculadora.rb
879
- - examples/i18n/ro/features/step_definitons/calculator_steps.rb
880
- - examples/i18n/ro/lib/calculator.rb
881
- - examples/i18n/ru/features/step_definitons/calculator_steps.rb
882
- - examples/i18n/ru/features/support/env.rb
883
- - examples/i18n/ru/features/support/world.rb
884
- - examples/i18n/ru/lib/calculator.rb
885
- - examples/i18n/sk/features/step_definitons/calculator_steps.rb
886
- - examples/i18n/sk/lib/calculator.rb
887
- - examples/i18n/sr-Cyrl/features/step_definitons/calculator_steps.rb
888
- - examples/i18n/sr-Cyrl/features/support/env.rb
889
- - examples/i18n/sr-Cyrl/lib/calculator.rb
890
- - examples/i18n/sr-Latn/features/step_definitons/calculator_steps.rb
891
- - examples/i18n/sr-Latn/lib/calculator.rb
892
- - examples/i18n/sv/features/step_definitons/kalkulator_steps.rb
893
- - examples/i18n/sv/lib/kalkulator.rb
894
- - examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb
895
- - examples/i18n/tr/lib/hesap_makinesi.rb
896
- - examples/i18n/uk/features/step_definitons/calculator_steps.rb
897
- - examples/i18n/uk/features/support/env.rb
898
- - examples/i18n/uk/features/support/world.rb
899
- - examples/i18n/uk/lib/calculator.rb
900
- - examples/i18n/uz/features/step_definitons/calculator_steps.rb
901
- - examples/i18n/uz/features/support/env.rb
902
- - examples/i18n/uz/features/support/world.rb
903
- - examples/i18n/uz/lib/calculator.rb
904
- - examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb
905
- - examples/i18n/zh-CN/lib/calculator.rb
906
- - examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb
907
- - examples/i18n/zh-TW/lib/calculator.rb
908
- - examples/ramaze/app.rb
909
- - examples/ramaze/features/step_definitions/add_steps.rb
910
- - examples/ramaze/features/support/env.rb
911
- - examples/rspec_doubles/features/step_definitions/calvin_steps.rb
912
- - examples/rspec_doubles/features/support/env.rb
913
- - examples/ruby2python/features/step_definitions/fib_steps.rb
914
- - examples/ruby2python/features/support/env.rb
915
- - examples/sinatra/app.rb
916
- - examples/sinatra/features/step_definitions/add_steps.rb
917
- - examples/sinatra/features/support/env.rb
918
- - examples/tcl/features/step_definitions/fib_steps.rb
919
- - examples/tcl/features/support/env.rb
920
- - examples/test_unit/features/step_definitions/test_unit_steps.rb
921
- - examples/watir/features/step_definitions/search_steps.rb
922
- - examples/watir/features/support/env.rb
923
- - examples/watir/features/support/screenshots.rb
711
+ test_files: []
712
+