cucumber 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/History.txt +21 -1
  2. data/Manifest.txt +49 -47
  3. data/bin/cucumber +1 -1
  4. data/config/hoe.rb +2 -2
  5. data/examples/i18n/Rakefile +6 -8
  6. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
  7. data/examples/i18n/ar/lib/calculator.rb +1 -0
  8. data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +1 -1
  9. data/examples/i18n/de/features/step_definitons/calculator_steps.rb +1 -1
  10. data/examples/i18n/en/features/step_definitons/calculator_steps.rb +1 -1
  11. data/examples/i18n/es/features/step_definitons/calculador_steps.rb +1 -1
  12. data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +1 -1
  13. data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +1 -1
  14. data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +1 -1
  15. data/examples/i18n/id/features/step_definitons/calculator_steps.rb +1 -1
  16. data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +1 -1
  17. data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +1 -1
  18. data/examples/i18n/ko/features/addition.feature +1 -1
  19. data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +1 -1
  20. data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +1 -1
  21. data/examples/i18n/no/features/support/env.rb +1 -1
  22. data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +1 -1
  23. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +1 -1
  24. data/examples/i18n/ru/features/support/env.rb +1 -1
  25. data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +1 -1
  26. data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +1 -1
  27. data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +1 -1
  28. data/examples/tickets/features/246.feature +4 -0
  29. data/examples/tickets/features/step_definitons/246_steps.rb +3 -0
  30. data/features/cucumber_cli_outlines.feature +1 -1
  31. data/gem_tasks/rspec.rake +3 -2
  32. data/lib/cucumber/ast/outline_table.rb +1 -1
  33. data/lib/cucumber/ast/table.rb +21 -0
  34. data/lib/cucumber/formatter/ansicolor.rb +10 -2
  35. data/lib/cucumber/languages.yml +51 -3
  36. data/lib/cucumber/parser.rb +2 -7
  37. data/lib/cucumber/parser/feature.rb +34 -39
  38. data/lib/cucumber/parser/feature.tt +1 -1
  39. data/lib/cucumber/parser/i18n.tt +4 -0
  40. data/lib/cucumber/step_definition.rb +9 -12
  41. data/lib/cucumber/step_mother.rb +3 -2
  42. data/lib/cucumber/version.rb +1 -1
  43. data/rails_generators/cucumber/templates/env.rb +1 -1
  44. data/rails_generators/cucumber/templates/paths.rb +2 -1
  45. data/rails_generators/cucumber/templates/webrat_steps.rb +8 -0
  46. data/{spec → specs}/cucumber/ast/background_spec.rb +0 -0
  47. data/{spec → specs}/cucumber/ast/feature_factory.rb +0 -0
  48. data/{spec → specs}/cucumber/ast/feature_spec.rb +0 -0
  49. data/{spec → specs}/cucumber/ast/py_string_spec.rb +0 -0
  50. data/{spec → specs}/cucumber/ast/scenario_outline_spec.rb +0 -0
  51. data/{spec → specs}/cucumber/ast/scenario_spec.rb +0 -0
  52. data/{spec → specs}/cucumber/ast/step_collection_spec.rb +0 -0
  53. data/{spec → specs}/cucumber/ast/step_spec.rb +0 -0
  54. data/{spec → specs}/cucumber/ast/table_spec.rb +21 -0
  55. data/{spec → specs}/cucumber/ast/tags_spec.rb +0 -0
  56. data/{spec → specs}/cucumber/broadcaster_spec.rb +0 -0
  57. data/{spec → specs}/cucumber/cli/configuration_spec.rb +0 -0
  58. data/{spec → specs}/cucumber/cli/main_spec.rb +0 -0
  59. data/{spec → specs}/cucumber/core_ext/proc_spec.rb +1 -1
  60. data/{spec → specs}/cucumber/core_ext/string_spec.rb +0 -0
  61. data/{spec → specs}/cucumber/formatter/ansicolor_spec.rb +0 -0
  62. data/{spec → specs}/cucumber/formatter/color_io_spec.rb +0 -0
  63. data/{spec → specs}/cucumber/formatter/html/cucumber.css +0 -0
  64. data/{spec → specs}/cucumber/formatter/html/cucumber.js +0 -0
  65. data/{spec → specs}/cucumber/formatter/html/index.html +0 -0
  66. data/{spec → specs}/cucumber/formatter/html/jquery-1.3.min.js +0 -0
  67. data/{spec → specs}/cucumber/formatter/html/jquery.uitableedit.js +0 -0
  68. data/{spec → specs}/cucumber/formatters/profile_formatter_spec.rb +0 -0
  69. data/{spec → specs}/cucumber/parser/feature_parser_spec.rb +0 -0
  70. data/{spec → specs}/cucumber/parser/table_parser_spec.rb +0 -0
  71. data/{spec → specs}/cucumber/rails/stubs/mini_rails.rb +0 -0
  72. data/{spec → specs}/cucumber/rails/stubs/test_help.rb +0 -0
  73. data/{spec → specs}/cucumber/rails/world_spec.rb +0 -0
  74. data/{spec → specs}/cucumber/sell_cucumbers.feature +0 -0
  75. data/{spec → specs}/cucumber/step_definition_spec.rb +8 -0
  76. data/{spec → specs}/cucumber/step_mother_spec.rb +19 -3
  77. data/{spec → specs}/cucumber/treetop_parser/empty_feature.feature +0 -0
  78. data/{spec → specs}/cucumber/treetop_parser/empty_scenario.feature +0 -0
  79. data/{spec → specs}/cucumber/treetop_parser/empty_scenario_outline.feature +0 -0
  80. data/{spec → specs}/cucumber/treetop_parser/fit_scenario.feature +0 -0
  81. data/{spec → specs}/cucumber/treetop_parser/given_scenario.feature +0 -0
  82. data/{spec → specs}/cucumber/treetop_parser/invalid_scenario_outlines.feature +0 -0
  83. data/{spec → specs}/cucumber/treetop_parser/multiline_steps.feature +0 -0
  84. data/{spec → specs}/cucumber/treetop_parser/multiple_tables.feature +0 -0
  85. data/{spec → specs}/cucumber/treetop_parser/scenario_outline.feature +0 -0
  86. data/{spec → specs}/cucumber/treetop_parser/spaces.feature +0 -0
  87. data/{spec → specs}/cucumber/treetop_parser/test_dos.feature +0 -0
  88. data/{spec → specs}/cucumber/treetop_parser/with_comments.feature +0 -0
  89. data/{spec → specs}/cucumber/treetop_parser/with_tags.feature +0 -0
  90. data/{spec → specs}/cucumber/world/pending_spec.rb +0 -0
  91. data/{spec → specs}/spec.opts +0 -0
  92. data/{spec → specs}/spec_helper.rb +0 -0
  93. metadata +54 -52
@@ -1,3 +1,23 @@
1
+ == 0.2.3 2009-03-30
2
+
3
+ This release sports 4 updated languages, slightly better help with snippets if you "quote" arguments
4
+ in your steps. Windows/JRuby users can enjoy colours and you get some more sugar with Tables.
5
+
6
+ === New features
7
+ * Added new Then /^I should be on (.+)$/ do |page_name| step (Grant Hollingworth)
8
+ * Use skipped_param color for examples table header (#266 Eugene Naydanov)
9
+ * Added new Cucumber::Ast::Table#rows_hash method (Torbjørn Vatn)
10
+ * Windows/JRuby users can now enjoy colourful output (via http://github.com/aslakhellesoy/ansicolor) (#166 Aslak Hellesøy)
11
+ * Ambiguous step errors hint about --guess (unless --guess already on) (Aslak Hellesøy)
12
+ * Added translation for Slovak (Ahmed Al Hafoudh)
13
+ * Updated translation for Dutch (Bart Zonneveld)
14
+ * Updated translation for Italian (Alessandro Baroni)
15
+ * Updated translation for Japanese (KAKUTANI Shintaro)
16
+
17
+ === Bugfixes
18
+ * Fixed step name after step keyword without space (#265 Aslak Hellesøy)
19
+ * Backtrace is back in HTML reports
20
+
1
21
  == 0.2.2 2009-03-25
2
22
 
3
23
  This release includes some minor changes to make Cucumber work with pure Java. Cucumber
@@ -65,7 +85,7 @@ for multiline arguments are some of the highlights.
65
85
  * Can't use an empty string as a table value in a scenario outline (#172 Aslak Hellesøy)
66
86
  * Really skip skipped steps (#90 Aslak Hellesøy)
67
87
  * No output for multi-line strings (#71 Aslak Hellesøy)
68
- * Fix cucumber/formatters/unicode flaws on Windows (#145 Michael)
88
+ * Fix cucumber/formatter/unicode flaws on Windows (#145 Michael)
69
89
  * Autotest-related Bugs: YAML missing (#136 Tobias Pape)
70
90
  * Overeager "rescue LoadError" hides lots of errors (#137 Jonathan del Strother)
71
91
  * Nested steps don't show mismatch (#116 Aslak Hellesøy)
@@ -170,10 +170,12 @@ examples/tickets/features/177/3.feature
170
170
  examples/tickets/features/180.feature
171
171
  examples/tickets/features/236.feature
172
172
  examples/tickets/features/241.feature
173
+ examples/tickets/features/246.feature
173
174
  examples/tickets/features/248.feature
174
175
  examples/tickets/features/lib/eatting_machine.rb
175
176
  examples/tickets/features/lib/pantry.rb
176
177
  examples/tickets/features/scenario_outline.feature
178
+ examples/tickets/features/step_definitons/246_steps.rb
177
179
  examples/tickets/features/step_definitons/248_steps.rb
178
180
  examples/tickets/features/step_definitons/scenario_outline_steps.rb
179
181
  examples/tickets/features/step_definitons/tickets_steps.rb
@@ -276,50 +278,50 @@ rails_generators/feature/USAGE
276
278
  rails_generators/feature/feature_generator.rb
277
279
  rails_generators/feature/templates/feature.erb
278
280
  rails_generators/feature/templates/steps.erb
279
- spec/cucumber/ast/background_spec.rb
280
- spec/cucumber/ast/feature_factory.rb
281
- spec/cucumber/ast/feature_spec.rb
282
- spec/cucumber/ast/py_string_spec.rb
283
- spec/cucumber/ast/scenario_outline_spec.rb
284
- spec/cucumber/ast/scenario_spec.rb
285
- spec/cucumber/ast/step_collection_spec.rb
286
- spec/cucumber/ast/step_spec.rb
287
- spec/cucumber/ast/table_spec.rb
288
- spec/cucumber/ast/tags_spec.rb
289
- spec/cucumber/broadcaster_spec.rb
290
- spec/cucumber/cli/configuration_spec.rb
291
- spec/cucumber/cli/main_spec.rb
292
- spec/cucumber/core_ext/proc_spec.rb
293
- spec/cucumber/core_ext/string_spec.rb
294
- spec/cucumber/formatter/ansicolor_spec.rb
295
- spec/cucumber/formatter/color_io_spec.rb
296
- spec/cucumber/formatter/html/cucumber.css
297
- spec/cucumber/formatter/html/cucumber.js
298
- spec/cucumber/formatter/html/index.html
299
- spec/cucumber/formatter/html/jquery-1.3.min.js
300
- spec/cucumber/formatter/html/jquery.uitableedit.js
301
- spec/cucumber/formatters/profile_formatter_spec.rb
302
- spec/cucumber/parser/feature_parser_spec.rb
303
- spec/cucumber/parser/table_parser_spec.rb
304
- spec/cucumber/rails/stubs/mini_rails.rb
305
- spec/cucumber/rails/stubs/test_help.rb
306
- spec/cucumber/rails/world_spec.rb
307
- spec/cucumber/sell_cucumbers.feature
308
- spec/cucumber/step_definition_spec.rb
309
- spec/cucumber/step_mother_spec.rb
310
- spec/cucumber/treetop_parser/empty_feature.feature
311
- spec/cucumber/treetop_parser/empty_scenario.feature
312
- spec/cucumber/treetop_parser/empty_scenario_outline.feature
313
- spec/cucumber/treetop_parser/fit_scenario.feature
314
- spec/cucumber/treetop_parser/given_scenario.feature
315
- spec/cucumber/treetop_parser/invalid_scenario_outlines.feature
316
- spec/cucumber/treetop_parser/multiline_steps.feature
317
- spec/cucumber/treetop_parser/multiple_tables.feature
318
- spec/cucumber/treetop_parser/scenario_outline.feature
319
- spec/cucumber/treetop_parser/spaces.feature
320
- spec/cucumber/treetop_parser/test_dos.feature
321
- spec/cucumber/treetop_parser/with_comments.feature
322
- spec/cucumber/treetop_parser/with_tags.feature
323
- spec/cucumber/world/pending_spec.rb
324
- spec/spec.opts
325
- spec/spec_helper.rb
281
+ specs/cucumber/ast/background_spec.rb
282
+ specs/cucumber/ast/feature_factory.rb
283
+ specs/cucumber/ast/feature_spec.rb
284
+ specs/cucumber/ast/py_string_spec.rb
285
+ specs/cucumber/ast/scenario_outline_spec.rb
286
+ specs/cucumber/ast/scenario_spec.rb
287
+ specs/cucumber/ast/step_collection_spec.rb
288
+ specs/cucumber/ast/step_spec.rb
289
+ specs/cucumber/ast/table_spec.rb
290
+ specs/cucumber/ast/tags_spec.rb
291
+ specs/cucumber/broadcaster_spec.rb
292
+ specs/cucumber/cli/configuration_spec.rb
293
+ specs/cucumber/cli/main_spec.rb
294
+ specs/cucumber/core_ext/proc_spec.rb
295
+ specs/cucumber/core_ext/string_spec.rb
296
+ specs/cucumber/formatter/ansicolor_spec.rb
297
+ specs/cucumber/formatter/color_io_spec.rb
298
+ specs/cucumber/formatter/html/cucumber.css
299
+ specs/cucumber/formatter/html/cucumber.js
300
+ specs/cucumber/formatter/html/index.html
301
+ specs/cucumber/formatter/html/jquery-1.3.min.js
302
+ specs/cucumber/formatter/html/jquery.uitableedit.js
303
+ specs/cucumber/formatters/profile_formatter_spec.rb
304
+ specs/cucumber/parser/feature_parser_spec.rb
305
+ specs/cucumber/parser/table_parser_spec.rb
306
+ specs/cucumber/rails/stubs/mini_rails.rb
307
+ specs/cucumber/rails/stubs/test_help.rb
308
+ specs/cucumber/rails/world_spec.rb
309
+ specs/cucumber/sell_cucumbers.feature
310
+ specs/cucumber/step_definition_spec.rb
311
+ specs/cucumber/step_mother_spec.rb
312
+ specs/cucumber/treetop_parser/empty_feature.feature
313
+ specs/cucumber/treetop_parser/empty_scenario.feature
314
+ specs/cucumber/treetop_parser/empty_scenario_outline.feature
315
+ specs/cucumber/treetop_parser/fit_scenario.feature
316
+ specs/cucumber/treetop_parser/given_scenario.feature
317
+ specs/cucumber/treetop_parser/invalid_scenario_outlines.feature
318
+ specs/cucumber/treetop_parser/multiline_steps.feature
319
+ specs/cucumber/treetop_parser/multiple_tables.feature
320
+ specs/cucumber/treetop_parser/scenario_outline.feature
321
+ specs/cucumber/treetop_parser/spaces.feature
322
+ specs/cucumber/treetop_parser/test_dos.feature
323
+ specs/cucumber/treetop_parser/with_comments.feature
324
+ specs/cucumber/treetop_parser/with_tags.feature
325
+ specs/cucumber/world/pending_spec.rb
326
+ specs/spec.opts
327
+ specs/spec_helper.rb
@@ -3,4 +3,4 @@
3
3
  $:.unshift(File.dirname(__FILE__ + '.rb') + '/../lib') unless $:.include?(File.dirname(__FILE__ + '.rb') + '/../lib')
4
4
 
5
5
  require 'cucumber/cli/main'
6
- Cucumber::Cli::Main.execute(ARGV.dup)
6
+ Cucumber::Cli::Main.execute(ARGV.dup) # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
@@ -60,8 +60,8 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
60
60
  #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
61
61
  p.extra_deps = [
62
62
  ['term-ansicolor', '>= 1.0.3'],
63
- ['treetop', '>= 1.2.4'],
64
- ['polyglot', '>= 0.2.4'], # Remove this when Treetop no longer loads polyglot by default.
63
+ ['treetop', '>= 1.2.5'],
64
+ ['polyglot', '>= 0.2.5'], # Remove this when Treetop no longer loads polyglot by default.
65
65
  ['diff-lcs', '>= 1.1.2'],
66
66
  ['builder', '>= 2.1.2']
67
67
  ]
@@ -4,14 +4,16 @@ task :i18n do
4
4
  Dir["#{dir}/*"].each do |f|
5
5
  if File.directory?(f)
6
6
  lang = f[dir.length+1..-1]
7
- if supported?(lang)
7
+ if examples_working?(lang)
8
8
  Dir.chdir(f) do
9
9
  rake("features")
10
10
  end
11
11
  else
12
12
  STDERR.puts %{
13
13
  !!!!!
14
- !!!!! SKIPPING #{lang} (Still needs some work)
14
+ !!!!!
15
+ !!!!! SKIPPING #{lang} (The examples are out of date - please help update them)
16
+ !!!!!
15
17
  !!!!!
16
18
  }
17
19
  end
@@ -19,12 +21,8 @@ task :i18n do
19
21
  end
20
22
  end
21
23
 
22
- def supported?(lang)
23
- if RUBY_VERSION =~ /^1\.9/
24
- !%w{ar ko zh-CN}.index(lang)
25
- else
26
- !%w{ar ko}.index(lang)
27
- end
24
+ def examples_working?(lang)
25
+ !%w{ro ko li lt}.index(lang)
28
26
  end
29
27
 
30
28
  def rake(args)
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  class Calculator
2
3
  def push(n)
3
4
  @args ||= []
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'kalkulator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculador'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'kalkulaator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'laskin'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculatrice'
6
6
 
7
7
  Soit /^une calculatrice$/ do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calcolatrice'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: UTF-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -9,7 +9,7 @@
9
9
  만일 내가 add를 누르면
10
10
  그러면 화면에 출력된 결과는 120이다
11
11
 
12
- 다른 예:
12
+ 예:
13
13
  | 입력1 | 입력2 | 버튼 | 결과 |
14
14
  | 20 | 30 | add | 50 |
15
15
  | 2 | 5 | add | 7 |
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -2,5 +2,5 @@
2
2
  $KCODE='u' unless Cucumber::RUBY_1_9
3
3
  require 'spec/expectations'
4
4
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
5
- require 'cucumber/formatters/unicode'
5
+ require 'cucumber/formatter/unicode'
6
6
  require 'kalkulator'
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculadora'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib')
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
  $KCODE='u' unless Cucumber::RUBY_1_9
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'kalkulator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
  require 'spec/expectations'
3
3
  $:.unshift(File.dirname(__FILE__) + '/../../lib') # This line is not needed in your own project
4
- require 'cucumber/formatters/unicode'
4
+ require 'cucumber/formatter/unicode'
5
5
  require 'calculator'
6
6
 
7
7
  Before do
@@ -0,0 +1,4 @@
1
+ Feature: https://rspec.lighthouseapp.com/projects/16211/tickets/246-distorted-console-output-for-slightly-complicated-step-regexp-match
2
+
3
+ Scenario: See "No Record(s) Found" for Zero Existing
4
+ Given no public holiday exists in the system
@@ -0,0 +1,3 @@
1
+ Given /^no ([a-z]+(?: [a-z]+)*) exists in the system$/ do |resource|
2
+ resource.should == "public holiday"
3
+ end
@@ -62,7 +62,7 @@ Feature: Cucumber command line
62
62
  When I run cucumber -q --format progress features/outline_sample.feature
63
63
  Then it should fail with
64
64
  """
65
- ----U-..F---..
65
+ --U-..F-..
66
66
 
67
67
  (::) failed steps (::)
68
68
 
@@ -29,9 +29,10 @@ if require_spec
29
29
 
30
30
  desc "Run the Cucumber specs"
31
31
  Spec::Rake::SpecTask.new do |t|
32
- t.spec_opts = ['--options', "spec/spec.opts"]
33
- t.spec_files = FileList['spec/**/*_spec.rb']
32
+ t.spec_opts = ['--options', "specs/spec.opts"]
33
+ t.spec_files = FileList['specs/**/*_spec.rb']
34
34
  t.rcov = ENV['RCOV']
35
35
  t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/}
36
+ t.verbose = true
36
37
  end
37
38
  end
@@ -53,7 +53,7 @@ module Cucumber
53
53
  def accept(visitor)
54
54
  if header?
55
55
  @cells.each do |cell|
56
- cell.status = :skipped
56
+ cell.status = :skipped_param
57
57
  visitor.visit_table_cell(cell)
58
58
  end
59
59
  else