cucumber 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. data/Caliper.yml +0 -1
  2. data/History.txt +9 -0
  3. data/Rakefile +3 -3
  4. data/VERSION.yml +1 -1
  5. data/cucumber.gemspec +93 -106
  6. data/examples/python/README.textile +7 -0
  7. data/examples/rspec_doubles/features/mocking.feature +9 -0
  8. data/examples/rspec_doubles/features/step_definitions/calvin_steps.rb +19 -0
  9. data/examples/rspec_doubles/features/support/env.rb +12 -0
  10. data/examples/ruby2python/README.textile +7 -0
  11. data/examples/watir/features/search.feature +1 -1
  12. data/examples/webrat/features/search.feature +1 -1
  13. data/examples/webrat/features/support/env.rb +2 -2
  14. data/features/background.feature +1 -1
  15. data/features/cucumber_cli.feature +23 -90
  16. data/features/{cucumber_cli_diff_disabled.feature → diffing.feature} +1 -6
  17. data/features/html_formatter.feature +2 -2
  18. data/features/html_formatter/a.html +1 -6
  19. data/features/json_formatter.feature +1 -1
  20. data/features/junit_formatter.feature +5 -5
  21. data/features/language_help.feature +1 -0
  22. data/features/step_definitions/cucumber_steps.rb +2 -2
  23. data/features/support/env.rb +11 -7
  24. data/{examples → fixtures}/json/features/background.feature +0 -0
  25. data/{examples → fixtures}/json/features/embed.feature +0 -0
  26. data/{examples → fixtures}/json/features/one_passing_one_failing.feature +0 -0
  27. data/{examples → fixtures}/json/features/pystring.feature +0 -0
  28. data/{examples → fixtures}/json/features/step_definitions/steps.rb +0 -0
  29. data/{examples → fixtures}/json/features/tables.feature +0 -0
  30. data/{examples → fixtures}/junit/features/one_passing_one_failing.feature +0 -0
  31. data/{examples → fixtures}/junit/features/pending.feature +0 -0
  32. data/{examples → fixtures}/junit/features/step_definitions/steps.rb +0 -0
  33. data/{examples → fixtures}/self_test/.gitignore +0 -0
  34. data/{examples → fixtures}/self_test/README.textile +0 -0
  35. data/{examples → fixtures}/self_test/Rakefile +0 -0
  36. data/{examples → fixtures}/self_test/features/background/background_tagged_before_on_outline.feature +0 -0
  37. data/{examples → fixtures}/self_test/features/background/background_with_name.feature +0 -0
  38. data/{examples → fixtures}/self_test/features/background/failing_background.feature +0 -0
  39. data/{examples → fixtures}/self_test/features/background/failing_background_after_success.feature +0 -0
  40. data/{examples → fixtures}/self_test/features/background/multiline_args_background.feature +0 -0
  41. data/{examples → fixtures}/self_test/features/background/passing_background.feature +0 -0
  42. data/{examples → fixtures}/self_test/features/background/pending_background.feature +0 -0
  43. data/{examples → fixtures}/self_test/features/background/scenario_outline_failing_background.feature +0 -0
  44. data/{examples → fixtures}/self_test/features/background/scenario_outline_passing_background.feature +0 -0
  45. data/{examples → fixtures}/self_test/features/call_undefined_step_from_step_def.feature +0 -0
  46. data/{examples → fixtures}/self_test/features/failing_expectation.feature +0 -0
  47. data/{examples → fixtures}/self_test/features/lots_of_undefined.feature +0 -0
  48. data/{examples → fixtures}/self_test/features/multiline_name.feature +0 -0
  49. data/{examples → fixtures}/self_test/features/outline_sample.feature +0 -0
  50. data/{examples → fixtures}/self_test/features/sample.feature +0 -0
  51. data/{examples → fixtures}/self_test/features/search_sample.feature +0 -0
  52. data/{examples → fixtures}/self_test/features/step_definitions/sample_steps.rb +0 -0
  53. data/{examples → fixtures}/self_test/features/support/env.rb +0 -0
  54. data/{examples → fixtures}/self_test/features/tags_sample.feature +0 -0
  55. data/{examples → fixtures}/self_test/features/tons_of_cukes.feature +0 -0
  56. data/{examples → fixtures}/self_test/features/undefined_multiline_args.feature +0 -0
  57. data/{examples → fixtures}/self_test/list-of-features.txt +0 -0
  58. data/{examples → fixtures}/steps_library/features/step_definitions/steps_lib1.rb +0 -0
  59. data/{examples → fixtures}/steps_library/features/step_definitions/steps_lib2.rb +0 -0
  60. data/{examples → fixtures}/tickets/Rakefile +0 -0
  61. data/{examples → fixtures}/tickets/features.html +0 -0
  62. data/{examples → fixtures}/tickets/features/172.feature +0 -0
  63. data/{examples → fixtures}/tickets/features/177/1.feature +0 -0
  64. data/{examples → fixtures}/tickets/features/177/2.feature +0 -0
  65. data/{examples → fixtures}/tickets/features/177/3.feature +0 -0
  66. data/{examples → fixtures}/tickets/features/180.feature +0 -0
  67. data/{examples → fixtures}/tickets/features/229/tagged_hooks.feature +0 -0
  68. data/{examples → fixtures}/tickets/features/229/tagged_hooks.rb +0 -0
  69. data/{examples → fixtures}/tickets/features/236.feature +0 -0
  70. data/{examples → fixtures}/tickets/features/241.feature +0 -0
  71. data/{examples → fixtures}/tickets/features/246.feature +0 -0
  72. data/{examples → fixtures}/tickets/features/248.feature +0 -0
  73. data/{examples → fixtures}/tickets/features/270/back.feature +0 -0
  74. data/{examples → fixtures}/tickets/features/270/back.steps.rb +0 -0
  75. data/{examples → fixtures}/tickets/features/272/hooks.feature +0 -0
  76. data/{examples → fixtures}/tickets/features/272/hooks_steps.rb +0 -0
  77. data/{examples → fixtures}/tickets/features/279/py_string_indent.feature +0 -0
  78. data/{examples → fixtures}/tickets/features/279/py_string_indent.steps.rb +0 -0
  79. data/{examples → fixtures}/tickets/features/279/wrong.feature_ +0 -0
  80. data/{examples → fixtures}/tickets/features/301/filter_background_tagged_hooks.feature +0 -0
  81. data/{examples → fixtures}/tickets/features/301/filter_background_tagged_hooks_steps.rb +0 -0
  82. data/{examples → fixtures}/tickets/features/306/only_background.feature +0 -0
  83. data/{examples → fixtures}/tickets/features/around_timeout.feature +0 -0
  84. data/{examples → fixtures}/tickets/features/half_manual.feature +0 -0
  85. data/{examples → fixtures}/tickets/features/lib/eatting_machine.rb +0 -0
  86. data/{examples → fixtures}/tickets/features/lib/pantry.rb +0 -0
  87. data/{examples → fixtures}/tickets/features/scenario_outline.feature +0 -0
  88. data/{examples → fixtures}/tickets/features/step_definitons/246_steps.rb +0 -0
  89. data/{examples → fixtures}/tickets/features/step_definitons/248_steps.rb +0 -0
  90. data/{examples → fixtures}/tickets/features/step_definitons/around_timeout_steps.rb +0 -0
  91. data/{examples → fixtures}/tickets/features/step_definitons/half_manual_steps.rb +0 -0
  92. data/{examples → fixtures}/tickets/features/step_definitons/scenario_outline_steps.rb +0 -0
  93. data/{examples → fixtures}/tickets/features/step_definitons/tickets_steps.rb +0 -0
  94. data/{examples → fixtures}/tickets/features/table_diffing.feature +0 -0
  95. data/{examples → fixtures}/tickets/features/tickets.feature +0 -0
  96. data/gem_tasks/examples.rake +1 -1
  97. data/lib/cucumber/ast/feature.rb +0 -5
  98. data/lib/cucumber/ast/feature_element.rb +2 -6
  99. data/lib/cucumber/ast/features.rb +0 -5
  100. data/lib/cucumber/ast/table.rb +1 -4
  101. data/lib/cucumber/ast/tags.rb +2 -2
  102. data/lib/cucumber/cli/configuration.rb +2 -2
  103. data/lib/cucumber/cli/drb_client.rb +1 -1
  104. data/lib/cucumber/cli/main.rb +1 -17
  105. data/lib/cucumber/cli/options.rb +0 -1
  106. data/lib/cucumber/cli/profile_loader.rb +1 -1
  107. data/lib/cucumber/feature_file.rb +9 -11
  108. data/lib/cucumber/formatter/console.rb +0 -11
  109. data/lib/cucumber/formatter/json.rb +1 -1
  110. data/lib/cucumber/formatter/pretty.rb +0 -1
  111. data/lib/cucumber/formatter/progress.rb +0 -1
  112. data/lib/cucumber/parser/gherkin_builder.rb +34 -28
  113. data/lib/cucumber/rspec/doubles.rb +16 -0
  114. data/lib/cucumber/step_mother.rb +37 -31
  115. data/spec/cucumber/cli/configuration_spec.rb +2 -2
  116. data/spec/cucumber/formatter/spec_helper.rb +1 -1
  117. metadata +96 -109
  118. data/examples/dos_line_endings/Rakefile +0 -6
  119. data/examples/dos_line_endings/features/dos_line_endings.feature +0 -9
@@ -2,4 +2,3 @@
2
2
  # Config for https://devver.net/caliper
3
3
  file_globs_to_ignore:
4
4
  - lib/rubygems/**/*
5
- - lib/cucumber/parser/{common,feature,py_string,table}.rb
@@ -1,3 +1,12 @@
1
+ == 0.8.4 (2010-07-12)
2
+
3
+ === Bugfixes
4
+ * Fix "Errno::EADDRNOTAVAIL" errors that may be received with spork on Snow Leopard. (Lucas Mundim)
5
+
6
+ === New features
7
+ * Detect limit for negative tags (#636 Aslak Hellesøy)
8
+ * Support for RSpec 2 doubles (mocks and stubs) (Aslak Hellesøy)
9
+
1
10
  == 0.8.3 (2010-06-16)
2
11
 
3
12
  Just a quick bugfix release.
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ begin
16
16
  gem.homepage = "http://cukes.info"
17
17
  gem.authors = ["Aslak Hellesøy"]
18
18
 
19
- gem.add_dependency 'gherkin', '~> 2.0.2'
19
+ gem.add_dependency 'gherkin', '~> 2.1.1'
20
20
  gem.add_dependency 'term-ansicolor', '~> 1.0.4'
21
21
  gem.add_dependency 'builder', '~> 2.1.2'
22
22
  gem.add_dependency 'diff-lcs', '~> 1.1.2'
@@ -25,9 +25,9 @@ begin
25
25
  gem.add_development_dependency 'nokogiri', '~> 1.4.2'
26
26
  gem.add_development_dependency 'prawn', '= 0.8.4'
27
27
  gem.add_development_dependency 'prawn-layout', '= 0.8.4'
28
- gem.add_development_dependency 'rspec', '~> 2.0.0.beta.11'
28
+ gem.add_development_dependency 'rspec', '~> 2.0.0.beta.15'
29
29
  gem.add_development_dependency 'syntax', '~> 1.0.0'
30
- gem.add_development_dependency 'spork', '~> 0.8.3' unless Cucumber::JRUBY || Cucumber::WINDOWS
30
+ gem.add_development_dependency 'spork', '~> 0.8.4' unless Cucumber::JRUBY || Cucumber::WINDOWS
31
31
 
32
32
  extend Cucumber::Formatter::ANSIColor
33
33
  gem.post_install_message = <<-POST_INSTALL_MESSAGE
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 3
2
+ :patch: 4
3
3
  :build:
4
4
  :major: 0
5
5
  :minor: 8
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber}
8
- s.version = "0.8.3"
8
+ s.version = "0.8.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aslak Helles\303\270y"]
12
- s.date = %q{2010-06-16}
12
+ s.date = %q{2010-07-13}
13
13
  s.default_executable = %q{cucumber}
14
14
  s.description = %q{Behaviour Driven Development with elegance and joy}
15
15
  s.email = %q{cukes@googlegroups.com}
@@ -31,8 +31,6 @@ Gem::Specification.new do |s|
31
31
  "bin/cucumber",
32
32
  "cucumber.gemspec",
33
33
  "cucumber.yml",
34
- "examples/dos_line_endings/Rakefile",
35
- "examples/dos_line_endings/features/dos_line_endings.feature",
36
34
  "examples/i18n/README.textile",
37
35
  "examples/i18n/Rakefile",
38
36
  "examples/i18n/ar/Rakefile",
@@ -225,15 +223,7 @@ Gem::Specification.new do |s|
225
223
  "examples/i18n/zh-TW/features/division.feature",
226
224
  "examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb",
227
225
  "examples/i18n/zh-TW/lib/calculator.rb",
228
- "examples/json/features/background.feature",
229
- "examples/json/features/embed.feature",
230
- "examples/json/features/one_passing_one_failing.feature",
231
- "examples/json/features/pystring.feature",
232
- "examples/json/features/step_definitions/steps.rb",
233
- "examples/json/features/tables.feature",
234
- "examples/junit/features/one_passing_one_failing.feature",
235
- "examples/junit/features/pending.feature",
236
- "examples/junit/features/step_definitions/steps.rb",
226
+ "examples/python/README.textile",
237
227
  "examples/python/Rakefile",
238
228
  "examples/python/features/fibonacci.feature",
239
229
  "examples/python/features/step_definitions/fib_steps.py",
@@ -247,37 +237,16 @@ Gem::Specification.new do |s|
247
237
  "examples/ramaze/features/support/env.rb",
248
238
  "examples/ramaze/layout/default.html.erb",
249
239
  "examples/ramaze/view/index.html.erb",
240
+ "examples/rspec_doubles/features/mocking.feature",
241
+ "examples/rspec_doubles/features/step_definitions/calvin_steps.rb",
242
+ "examples/rspec_doubles/features/support/env.rb",
243
+ "examples/ruby2python/README.textile",
250
244
  "examples/ruby2python/Rakefile",
251
245
  "examples/ruby2python/features/fibonacci.feature",
252
246
  "examples/ruby2python/features/step_definitions/fib_steps.rb",
253
247
  "examples/ruby2python/features/support/env.rb",
254
248
  "examples/ruby2python/lib/.gitignore",
255
249
  "examples/ruby2python/lib/fib.py",
256
- "examples/self_test/.gitignore",
257
- "examples/self_test/README.textile",
258
- "examples/self_test/Rakefile",
259
- "examples/self_test/features/background/background_tagged_before_on_outline.feature",
260
- "examples/self_test/features/background/background_with_name.feature",
261
- "examples/self_test/features/background/failing_background.feature",
262
- "examples/self_test/features/background/failing_background_after_success.feature",
263
- "examples/self_test/features/background/multiline_args_background.feature",
264
- "examples/self_test/features/background/passing_background.feature",
265
- "examples/self_test/features/background/pending_background.feature",
266
- "examples/self_test/features/background/scenario_outline_failing_background.feature",
267
- "examples/self_test/features/background/scenario_outline_passing_background.feature",
268
- "examples/self_test/features/call_undefined_step_from_step_def.feature",
269
- "examples/self_test/features/failing_expectation.feature",
270
- "examples/self_test/features/lots_of_undefined.feature",
271
- "examples/self_test/features/multiline_name.feature",
272
- "examples/self_test/features/outline_sample.feature",
273
- "examples/self_test/features/sample.feature",
274
- "examples/self_test/features/search_sample.feature",
275
- "examples/self_test/features/step_definitions/sample_steps.rb",
276
- "examples/self_test/features/support/env.rb",
277
- "examples/self_test/features/tags_sample.feature",
278
- "examples/self_test/features/tons_of_cukes.feature",
279
- "examples/self_test/features/undefined_multiline_args.feature",
280
- "examples/self_test/list-of-features.txt",
281
250
  "examples/sinatra/README.textile",
282
251
  "examples/sinatra/Rakefile",
283
252
  "examples/sinatra/app.rb",
@@ -286,8 +255,6 @@ Gem::Specification.new do |s|
286
255
  "examples/sinatra/features/support/env.rb",
287
256
  "examples/sinatra/views/add.erb",
288
257
  "examples/sinatra/views/layout.erb",
289
- "examples/steps_library/features/step_definitions/steps_lib1.rb",
290
- "examples/steps_library/features/step_definitions/steps_lib2.rb",
291
258
  "examples/tcl/README.textile",
292
259
  "examples/tcl/Rakefile",
293
260
  "examples/tcl/features/fibonnacci.feature",
@@ -297,42 +264,6 @@ Gem::Specification.new do |s|
297
264
  "examples/test_unit/Rakefile",
298
265
  "examples/test_unit/features/step_definitions/test_unit_steps.rb",
299
266
  "examples/test_unit/features/test_unit.feature",
300
- "examples/tickets/Rakefile",
301
- "examples/tickets/features.html",
302
- "examples/tickets/features/172.feature",
303
- "examples/tickets/features/177/1.feature",
304
- "examples/tickets/features/177/2.feature",
305
- "examples/tickets/features/177/3.feature",
306
- "examples/tickets/features/180.feature",
307
- "examples/tickets/features/229/tagged_hooks.feature",
308
- "examples/tickets/features/229/tagged_hooks.rb",
309
- "examples/tickets/features/236.feature",
310
- "examples/tickets/features/241.feature",
311
- "examples/tickets/features/246.feature",
312
- "examples/tickets/features/248.feature",
313
- "examples/tickets/features/270/back.feature",
314
- "examples/tickets/features/270/back.steps.rb",
315
- "examples/tickets/features/272/hooks.feature",
316
- "examples/tickets/features/272/hooks_steps.rb",
317
- "examples/tickets/features/279/py_string_indent.feature",
318
- "examples/tickets/features/279/py_string_indent.steps.rb",
319
- "examples/tickets/features/279/wrong.feature_",
320
- "examples/tickets/features/301/filter_background_tagged_hooks.feature",
321
- "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb",
322
- "examples/tickets/features/306/only_background.feature",
323
- "examples/tickets/features/around_timeout.feature",
324
- "examples/tickets/features/half_manual.feature",
325
- "examples/tickets/features/lib/eatting_machine.rb",
326
- "examples/tickets/features/lib/pantry.rb",
327
- "examples/tickets/features/scenario_outline.feature",
328
- "examples/tickets/features/step_definitons/246_steps.rb",
329
- "examples/tickets/features/step_definitons/248_steps.rb",
330
- "examples/tickets/features/step_definitons/around_timeout_steps.rb",
331
- "examples/tickets/features/step_definitons/half_manual_steps.rb",
332
- "examples/tickets/features/step_definitons/scenario_outline_steps.rb",
333
- "examples/tickets/features/step_definitons/tickets_steps.rb",
334
- "examples/tickets/features/table_diffing.feature",
335
- "examples/tickets/features/tickets.feature",
336
267
  "examples/v8/Rakefile",
337
268
  "examples/v8/features/fibonacci.feature",
338
269
  "examples/v8/features/step_definitions/fib_steps.js",
@@ -360,10 +291,10 @@ Gem::Specification.new do |s|
360
291
  "features/bug_600.feature",
361
292
  "features/call_steps_from_stepdefs.feature",
362
293
  "features/cucumber_cli.feature",
363
- "features/cucumber_cli_diff_disabled.feature",
364
294
  "features/cucumber_cli_outlines.feature",
365
295
  "features/custom_formatter.feature",
366
296
  "features/default_snippets.feature",
297
+ "features/diffing.feature",
367
298
  "features/drb_server_integration.feature",
368
299
  "features/exception_in_after_block.feature",
369
300
  "features/exception_in_after_step_block.feature",
@@ -405,6 +336,78 @@ Gem::Specification.new do |s|
405
336
  "features/wire_protocol_tags.feature",
406
337
  "features/wire_protocol_timeouts.feature",
407
338
  "features/work_in_progress.feature",
339
+ "fixtures/json/features/background.feature",
340
+ "fixtures/json/features/embed.feature",
341
+ "fixtures/json/features/one_passing_one_failing.feature",
342
+ "fixtures/json/features/pystring.feature",
343
+ "fixtures/json/features/step_definitions/steps.rb",
344
+ "fixtures/json/features/tables.feature",
345
+ "fixtures/junit/features/one_passing_one_failing.feature",
346
+ "fixtures/junit/features/pending.feature",
347
+ "fixtures/junit/features/step_definitions/steps.rb",
348
+ "fixtures/self_test/.gitignore",
349
+ "fixtures/self_test/README.textile",
350
+ "fixtures/self_test/Rakefile",
351
+ "fixtures/self_test/features/background/background_tagged_before_on_outline.feature",
352
+ "fixtures/self_test/features/background/background_with_name.feature",
353
+ "fixtures/self_test/features/background/failing_background.feature",
354
+ "fixtures/self_test/features/background/failing_background_after_success.feature",
355
+ "fixtures/self_test/features/background/multiline_args_background.feature",
356
+ "fixtures/self_test/features/background/passing_background.feature",
357
+ "fixtures/self_test/features/background/pending_background.feature",
358
+ "fixtures/self_test/features/background/scenario_outline_failing_background.feature",
359
+ "fixtures/self_test/features/background/scenario_outline_passing_background.feature",
360
+ "fixtures/self_test/features/call_undefined_step_from_step_def.feature",
361
+ "fixtures/self_test/features/failing_expectation.feature",
362
+ "fixtures/self_test/features/lots_of_undefined.feature",
363
+ "fixtures/self_test/features/multiline_name.feature",
364
+ "fixtures/self_test/features/outline_sample.feature",
365
+ "fixtures/self_test/features/sample.feature",
366
+ "fixtures/self_test/features/search_sample.feature",
367
+ "fixtures/self_test/features/step_definitions/sample_steps.rb",
368
+ "fixtures/self_test/features/support/env.rb",
369
+ "fixtures/self_test/features/tags_sample.feature",
370
+ "fixtures/self_test/features/tons_of_cukes.feature",
371
+ "fixtures/self_test/features/undefined_multiline_args.feature",
372
+ "fixtures/self_test/list-of-features.txt",
373
+ "fixtures/steps_library/features/step_definitions/steps_lib1.rb",
374
+ "fixtures/steps_library/features/step_definitions/steps_lib2.rb",
375
+ "fixtures/tickets/Rakefile",
376
+ "fixtures/tickets/features.html",
377
+ "fixtures/tickets/features/172.feature",
378
+ "fixtures/tickets/features/177/1.feature",
379
+ "fixtures/tickets/features/177/2.feature",
380
+ "fixtures/tickets/features/177/3.feature",
381
+ "fixtures/tickets/features/180.feature",
382
+ "fixtures/tickets/features/229/tagged_hooks.feature",
383
+ "fixtures/tickets/features/229/tagged_hooks.rb",
384
+ "fixtures/tickets/features/236.feature",
385
+ "fixtures/tickets/features/241.feature",
386
+ "fixtures/tickets/features/246.feature",
387
+ "fixtures/tickets/features/248.feature",
388
+ "fixtures/tickets/features/270/back.feature",
389
+ "fixtures/tickets/features/270/back.steps.rb",
390
+ "fixtures/tickets/features/272/hooks.feature",
391
+ "fixtures/tickets/features/272/hooks_steps.rb",
392
+ "fixtures/tickets/features/279/py_string_indent.feature",
393
+ "fixtures/tickets/features/279/py_string_indent.steps.rb",
394
+ "fixtures/tickets/features/279/wrong.feature_",
395
+ "fixtures/tickets/features/301/filter_background_tagged_hooks.feature",
396
+ "fixtures/tickets/features/301/filter_background_tagged_hooks_steps.rb",
397
+ "fixtures/tickets/features/306/only_background.feature",
398
+ "fixtures/tickets/features/around_timeout.feature",
399
+ "fixtures/tickets/features/half_manual.feature",
400
+ "fixtures/tickets/features/lib/eatting_machine.rb",
401
+ "fixtures/tickets/features/lib/pantry.rb",
402
+ "fixtures/tickets/features/scenario_outline.feature",
403
+ "fixtures/tickets/features/step_definitons/246_steps.rb",
404
+ "fixtures/tickets/features/step_definitons/248_steps.rb",
405
+ "fixtures/tickets/features/step_definitons/around_timeout_steps.rb",
406
+ "fixtures/tickets/features/step_definitons/half_manual_steps.rb",
407
+ "fixtures/tickets/features/step_definitons/scenario_outline_steps.rb",
408
+ "fixtures/tickets/features/step_definitons/tickets_steps.rb",
409
+ "fixtures/tickets/features/table_diffing.feature",
410
+ "fixtures/tickets/features/tickets.feature",
408
411
  "gem_tasks/contributors.rake",
409
412
  "gem_tasks/environment.rake",
410
413
  "gem_tasks/examples.rake",
@@ -497,6 +500,7 @@ Gem::Specification.new do |s|
497
500
  "lib/cucumber/rb_support/rb_world.rb",
498
501
  "lib/cucumber/rb_support/regexp_argument_matcher.rb",
499
502
  "lib/cucumber/rspec/disable_option_parser.rb",
503
+ "lib/cucumber/rspec/doubles.rb",
500
504
  "lib/cucumber/step_argument.rb",
501
505
  "lib/cucumber/step_definition_light.rb",
502
506
  "lib/cucumber/step_match.rb",
@@ -555,7 +559,7 @@ Gem::Specification.new do |s|
555
559
 
556
560
  (::) U P G R A D I N G (::)
557
561
 
558
- Thank you for installing cucumber-0.8.3.
562
+ Thank you for installing cucumber-0.8.4.
559
563
  Please be sure to read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
560
564
  for important information about this release. Happy cuking!
561
565
 
@@ -688,36 +692,19 @@ for important information about this release. Happy cuking!
688
692
  "examples/i18n/zh-CN/lib/calculator.rb",
689
693
  "examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb",
690
694
  "examples/i18n/zh-TW/lib/calculator.rb",
691
- "examples/json/features/step_definitions/steps.rb",
692
- "examples/junit/features/step_definitions/steps.rb",
693
695
  "examples/ramaze/app.rb",
694
696
  "examples/ramaze/features/step_definitions/add_steps.rb",
695
697
  "examples/ramaze/features/support/env.rb",
698
+ "examples/rspec_doubles/features/step_definitions/calvin_steps.rb",
699
+ "examples/rspec_doubles/features/support/env.rb",
696
700
  "examples/ruby2python/features/step_definitions/fib_steps.rb",
697
701
  "examples/ruby2python/features/support/env.rb",
698
- "examples/self_test/features/step_definitions/sample_steps.rb",
699
- "examples/self_test/features/support/env.rb",
700
702
  "examples/sinatra/app.rb",
701
703
  "examples/sinatra/features/step_definitions/add_steps.rb",
702
704
  "examples/sinatra/features/support/env.rb",
703
- "examples/steps_library/features/step_definitions/steps_lib1.rb",
704
- "examples/steps_library/features/step_definitions/steps_lib2.rb",
705
705
  "examples/tcl/features/step_definitions/fib_steps.rb",
706
706
  "examples/tcl/features/support/env.rb",
707
707
  "examples/test_unit/features/step_definitions/test_unit_steps.rb",
708
- "examples/tickets/features/229/tagged_hooks.rb",
709
- "examples/tickets/features/270/back.steps.rb",
710
- "examples/tickets/features/272/hooks_steps.rb",
711
- "examples/tickets/features/279/py_string_indent.steps.rb",
712
- "examples/tickets/features/301/filter_background_tagged_hooks_steps.rb",
713
- "examples/tickets/features/lib/eatting_machine.rb",
714
- "examples/tickets/features/lib/pantry.rb",
715
- "examples/tickets/features/step_definitons/246_steps.rb",
716
- "examples/tickets/features/step_definitons/248_steps.rb",
717
- "examples/tickets/features/step_definitons/around_timeout_steps.rb",
718
- "examples/tickets/features/step_definitons/half_manual_steps.rb",
719
- "examples/tickets/features/step_definitons/scenario_outline_steps.rb",
720
- "examples/tickets/features/step_definitons/tickets_steps.rb",
721
708
  "examples/watir/features/step_definitions/search_steps.rb",
722
709
  "examples/watir/features/support/env.rb",
723
710
  "examples/watir/features/support/screenshots.rb",
@@ -730,7 +717,7 @@ for important information about this release. Happy cuking!
730
717
  s.specification_version = 3
731
718
 
732
719
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
733
- s.add_runtime_dependency(%q<gherkin>, ["~> 2.0.2"])
720
+ s.add_runtime_dependency(%q<gherkin>, ["~> 2.1.1"])
734
721
  s.add_runtime_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
735
722
  s.add_runtime_dependency(%q<builder>, ["~> 2.1.2"])
736
723
  s.add_runtime_dependency(%q<diff-lcs>, ["~> 1.1.2"])
@@ -738,11 +725,11 @@ for important information about this release. Happy cuking!
738
725
  s.add_development_dependency(%q<nokogiri>, ["~> 1.4.2"])
739
726
  s.add_development_dependency(%q<prawn>, ["= 0.8.4"])
740
727
  s.add_development_dependency(%q<prawn-layout>, ["= 0.8.4"])
741
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0.beta.11"])
728
+ s.add_development_dependency(%q<rspec>, ["~> 2.0.0.beta.15"])
742
729
  s.add_development_dependency(%q<syntax>, ["~> 1.0.0"])
743
- s.add_development_dependency(%q<spork>, ["~> 0.8.3"])
730
+ s.add_development_dependency(%q<spork>, ["~> 0.8.4"])
744
731
  else
745
- s.add_dependency(%q<gherkin>, ["~> 2.0.2"])
732
+ s.add_dependency(%q<gherkin>, ["~> 2.1.1"])
746
733
  s.add_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
747
734
  s.add_dependency(%q<builder>, ["~> 2.1.2"])
748
735
  s.add_dependency(%q<diff-lcs>, ["~> 1.1.2"])
@@ -750,12 +737,12 @@ for important information about this release. Happy cuking!
750
737
  s.add_dependency(%q<nokogiri>, ["~> 1.4.2"])
751
738
  s.add_dependency(%q<prawn>, ["= 0.8.4"])
752
739
  s.add_dependency(%q<prawn-layout>, ["= 0.8.4"])
753
- s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.11"])
740
+ s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.15"])
754
741
  s.add_dependency(%q<syntax>, ["~> 1.0.0"])
755
- s.add_dependency(%q<spork>, ["~> 0.8.3"])
742
+ s.add_dependency(%q<spork>, ["~> 0.8.4"])
756
743
  end
757
744
  else
758
- s.add_dependency(%q<gherkin>, ["~> 2.0.2"])
745
+ s.add_dependency(%q<gherkin>, ["~> 2.1.1"])
759
746
  s.add_dependency(%q<term-ansicolor>, ["~> 1.0.4"])
760
747
  s.add_dependency(%q<builder>, ["~> 2.1.2"])
761
748
  s.add_dependency(%q<diff-lcs>, ["~> 1.1.2"])
@@ -763,9 +750,9 @@ for important information about this release. Happy cuking!
763
750
  s.add_dependency(%q<nokogiri>, ["~> 1.4.2"])
764
751
  s.add_dependency(%q<prawn>, ["= 0.8.4"])
765
752
  s.add_dependency(%q<prawn-layout>, ["= 0.8.4"])
766
- s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.11"])
753
+ s.add_dependency(%q<rspec>, ["~> 2.0.0.beta.15"])
767
754
  s.add_dependency(%q<syntax>, ["~> 1.0.0"])
768
- s.add_dependency(%q<spork>, ["~> 0.8.3"])
755
+ s.add_dependency(%q<spork>, ["~> 0.8.4"])
769
756
  end
770
757
  end
771
758
 
@@ -0,0 +1,7 @@
1
+ h1. WARNING - Experimental
2
+
3
+ The Python support is experimental. Don't expect it to work.
4
+ Please help fix it or head over to a more mature library:
5
+
6
+ * http://github.com/gabrielfalcao/lettuce/
7
+ * http://wiki.github.com/heynemann/pyccuracy/
@@ -0,0 +1,9 @@
1
+ Feature: Mocking
2
+ In order to test external stuff
3
+ I want to mock
4
+
5
+ Scenario: Mock a transmogrifier
6
+ Given I have a cardboard box
7
+ # Comment out the next line to see a failure
8
+ When I poke it all is good
9
+
@@ -0,0 +1,19 @@
1
+ class CardboardBox
2
+ def initialize(transmogrifier)
3
+ @transmogrifier = transmogrifier
4
+ end
5
+
6
+ def poke
7
+ @transmogrifier.transmogrify
8
+ end
9
+ end
10
+
11
+ Given /^I have a cardboard box$/ do
12
+ transmogrifier = double('transmogrifier')
13
+ transmogrifier.should_receive(:transmogrify)
14
+ @box = CardboardBox.new(transmogrifier)
15
+ end
16
+
17
+ When /^I poke it all is good$/ do
18
+ @box.poke
19
+ end
@@ -0,0 +1,12 @@
1
+ # If you want to use a different mock framework than
2
+ # RSpec-Mocks - just set configure that accordingly
3
+ #
4
+ # require 'rspec/core'
5
+ # RSpec.configure do |c|
6
+ # c.mock_framework = :rspec
7
+ # c.mock_framework = :mocha
8
+ # c.mock_framework = :rr
9
+ # c.mock_framework = :flexmock
10
+ # end
11
+
12
+ require 'cucumber/rspec/doubles'
@@ -0,0 +1,7 @@
1
+ h1. WARNING - Experimental
2
+
3
+ The Python support is experimental. Don't expect it to work.
4
+ Please help fix it or head over to a more mature library:
5
+
6
+ * http://github.com/gabrielfalcao/lettuce/
7
+ * http://wiki.github.com/heynemann/pyccuracy/
@@ -8,5 +8,5 @@ Feature: Search
8
8
  When I search for "cucumber github"
9
9
  Then I should see
10
10
  """
11
- written in Ruby
11
+ GitHub
12
12
  """
@@ -8,5 +8,5 @@ Feature: Search
8
8
  When I search for "cucumber github"
9
9
  Then I should see
10
10
  """
11
- BDD that talks to domain experts first and code second
11
+ GitHub
12
12
  """