kosmas58-cucumber 0.3.11.3 → 0.3.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. data/History.txt +36 -0
  2. data/Manifest.txt +9 -0
  3. data/config/hoe.rb +1 -2
  4. data/examples/i18n/ar/Rakefile +1 -1
  5. data/examples/i18n/ar/features/addition.feature +1 -0
  6. data/examples/i18n/bg/Rakefile +1 -1
  7. data/examples/i18n/bg/features/addition.feature +1 -0
  8. data/examples/i18n/bg/features/consecutive_calculations.feature +1 -0
  9. data/examples/i18n/bg/features/division.feature +1 -0
  10. data/examples/i18n/cat/Rakefile +1 -1
  11. data/examples/i18n/cat/features/suma.feature +1 -0
  12. data/examples/i18n/da/Rakefile +1 -1
  13. data/examples/i18n/da/features/summering.feature +1 -0
  14. data/examples/i18n/de/Rakefile +1 -1
  15. data/examples/i18n/de/features/addition.feature +1 -0
  16. data/examples/i18n/de/features/division.feature +1 -0
  17. data/examples/i18n/en/Rakefile +1 -1
  18. data/examples/i18n/en/features/addition.feature +1 -0
  19. data/examples/i18n/en/features/division.feature +1 -0
  20. data/examples/i18n/en-lol/features/stuffing.feature +1 -1
  21. data/examples/i18n/es/Rakefile +1 -1
  22. data/examples/i18n/es/features/adicion.feature +1 -0
  23. data/examples/i18n/et/Rakefile +1 -1
  24. data/examples/i18n/et/features/jagamine.feature +1 -0
  25. data/examples/i18n/et/features/liitmine.feature +1 -0
  26. data/examples/i18n/fi/Rakefile +1 -1
  27. data/examples/i18n/fi/features/jakolasku.feature +1 -0
  28. data/examples/i18n/fr/Rakefile +1 -1
  29. data/examples/i18n/fr/features/addition.feature +2 -1
  30. data/examples/i18n/he/Rakefile +1 -1
  31. data/examples/i18n/he/features/addition.feature +1 -0
  32. data/examples/i18n/he/features/division.feature +1 -0
  33. data/examples/i18n/hu/Rakefile +1 -1
  34. data/examples/i18n/hu/features/addition.feature +1 -0
  35. data/examples/i18n/hu/features/division.feature +1 -0
  36. data/examples/i18n/id/Rakefile +1 -1
  37. data/examples/i18n/id/features/addition.feature +1 -0
  38. data/examples/i18n/id/features/division.feature +1 -0
  39. data/examples/i18n/it/Rakefile +1 -1
  40. data/examples/i18n/it/features/somma.feature +1 -0
  41. data/examples/i18n/ja/Rakefile +1 -1
  42. data/examples/i18n/ja/features/addition.feature +1 -0
  43. data/examples/i18n/ja/features/division.feature +1 -0
  44. data/examples/i18n/ko/Rakefile +1 -1
  45. data/examples/i18n/ko/features/addition.feature +1 -0
  46. data/examples/i18n/ko/features/division.feature +1 -0
  47. data/examples/i18n/lt/Rakefile +1 -1
  48. data/examples/i18n/lt/features/addition.feature +1 -0
  49. data/examples/i18n/lt/features/division.feature +1 -0
  50. data/examples/i18n/lv/Rakefile +1 -1
  51. data/examples/i18n/lv/features/addition.feature +1 -0
  52. data/examples/i18n/lv/features/division.feature +1 -0
  53. data/examples/i18n/no/Rakefile +1 -1
  54. data/examples/i18n/no/features/summering.feature +1 -0
  55. data/examples/i18n/pl/Rakefile +1 -1
  56. data/examples/i18n/pl/features/addition.feature +1 -0
  57. data/examples/i18n/pl/features/division.feature +1 -0
  58. data/examples/i18n/pt/Rakefile +1 -1
  59. data/examples/i18n/pt/features/adicao.feature +1 -0
  60. data/examples/i18n/ro/Rakefile +1 -1
  61. data/examples/i18n/ro/features/suma.feature +1 -0
  62. data/examples/i18n/ru/Rakefile +1 -1
  63. data/examples/i18n/ru/features/addition.feature +1 -0
  64. data/examples/i18n/ru/features/consecutive_calculations.feature +1 -0
  65. data/examples/i18n/ru/features/division.feature +1 -0
  66. data/examples/i18n/se/Rakefile +1 -1
  67. data/examples/i18n/se/features/summering.feature +1 -0
  68. data/examples/i18n/sk/Rakefile +1 -1
  69. data/examples/i18n/sk/features/addition.feature +1 -0
  70. data/examples/i18n/sk/features/division.feature +1 -0
  71. data/examples/i18n/zh-CN/features/addition.feature +1 -0
  72. data/examples/i18n/zh-TW/features/addition.feature +1 -0
  73. data/examples/i18n/zh-TW/features/division.feature +1 -0
  74. data/examples/sinatra/features/step_definitions/add_steps.rb +1 -1
  75. data/examples/sinatra/features/support/env.rb +13 -5
  76. data/features/after_block_exceptions.feature +4 -1
  77. data/features/after_step_block_exceptions.feature +4 -1
  78. data/features/background.feature +6 -0
  79. data/features/cucumber_cli.feature +11 -1
  80. data/features/cucumber_cli_diff_disabled.feature +7 -1
  81. data/features/drb_server_integration.feature +5 -4
  82. data/features/expand.feature +2 -1
  83. data/features/html_formatter/a.html +12 -14
  84. data/features/junit_formatter.feature +4 -4
  85. data/features/step_definitions/cucumber_steps.rb +2 -2
  86. data/features/support/env.rb +7 -4
  87. data/features/work_in_progress.feature +3 -0
  88. data/lib/cucumber/ast/comment.rb +1 -1
  89. data/lib/cucumber/ast/feature.rb +2 -2
  90. data/lib/cucumber/ast/feature_element.rb +4 -0
  91. data/lib/cucumber/ast/scenario.rb +5 -3
  92. data/lib/cucumber/ast/scenario_outline.rb +6 -1
  93. data/lib/cucumber/ast/step.rb +4 -0
  94. data/lib/cucumber/ast/step_invocation.rb +6 -1
  95. data/lib/cucumber/cli/configuration.rb +37 -26
  96. data/lib/cucumber/cli/main.rb +4 -5
  97. data/lib/cucumber/formatter/console.rb +12 -0
  98. data/lib/cucumber/formatter/html.rb +3 -2
  99. data/lib/cucumber/formatter/junit.rb +3 -6
  100. data/lib/cucumber/formatter/pretty.rb +2 -4
  101. data/lib/cucumber/formatter/profile.rb +1 -1
  102. data/lib/cucumber/languages.yml +3 -3
  103. data/lib/cucumber/parser/feature.rb +12 -16
  104. data/lib/cucumber/parser/feature.tt +1 -3
  105. data/lib/cucumber/parser/i18n.tt +30 -23
  106. data/lib/cucumber/parser/treetop_ext.rb +12 -83
  107. data/lib/cucumber/parser.rb +1 -33
  108. data/lib/cucumber/platform.rb +6 -0
  109. data/lib/cucumber/step_definition.rb +6 -0
  110. data/lib/cucumber/step_mother.rb +3 -3
  111. data/lib/cucumber/version.rb +1 -1
  112. data/lib/cucumber.rb +0 -57
  113. data/rails_generators/cucumber/templates/cucumber.rake +4 -0
  114. data/spec/cucumber/ast/step_collection_spec.rb +5 -4
  115. data/spec/cucumber/cli/configuration_spec.rb +42 -9
  116. data/spec/cucumber/cli/main_spec.rb +2 -10
  117. data/spec/cucumber/parser/feature_parser_spec.rb +11 -9
  118. data/spec/cucumber/parser/table_parser_spec.rb +1 -1
  119. data/spec/spec_helper.rb +0 -1
  120. metadata +3 -13
data/History.txt CHANGED
@@ -1,9 +1,45 @@
1
1
  == 0.3.12 (In Git)
2
2
 
3
+ The Egality release
4
+
5
+ English is not the world's most spoken language, so why should Cucumber force non-English speakers to use the
6
+ --language flag? As of this release you're no longer forced to do that. Instead, you can add a comment header
7
+ to your .feature files:
8
+
9
+ # language: fr
10
+ Fonctionnalité: Trou de boulette
11
+
12
+ If you don't have that header, Cucumber will work as before - using whatever you specified with --language,
13
+ or default to English if no --language option was specified. A nice side effect of this is that you can now
14
+ have features in several languages side by side and run them in the same cucumber. (Not recommended unless
15
+ you want to take polyglot programming to an extreme level).
16
+
17
+ Another useful new feature is the ability to define environment variables on Cucumber's command line (just
18
+ like you can with Rake). Example:
19
+
20
+ cucumber FOO=BAR --format progress features
21
+
22
+ You can now pick up ENV['FOO'] in ruby (for example in env.rb) and take actions according to the value,
23
+ for example enabling your super hack that validates all HTTP responses for XHTML validity.
24
+
25
+ This release also has several bugfixes related to --format and Before/Adter hooks.
26
+
3
27
  === Bugfixes
28
+ * Before and After hooks run after everything is finished whn there are 2+ --format options (#371 Aslak Hellesøy)
29
+ * When using --out and two --format the first is not delivered inline with execution of features (#361 Aslak Hellesøy)
30
+ * Profile Formatter broken (#370 Aslak Hellesøy)
31
+ * Default profile usage with --drb flag degrades gracefully with no server. (#367 Ben Mabey)
32
+ * JUnit formatter uses original file name instead of narrative to avoid accidental duplicate XML files (Aslak Hellesøy)
33
+ * rake gems no longer lists cucumber as a [F]ramework gem (David Chelimsky)
4
34
  * CLI issues correct exit code when using --drb. Requires Spork version >= 0.5.1. (#355 Ben Mabey)
5
35
  * Make sure script/generate cucumber --spork uses the cucumber Rails environment (Philippe Lafoucrière)
6
36
 
37
+ === New Features
38
+ * New --format steps formatter. Variant of the usage formatter that lists available step definitions (Demetrius Nunes)
39
+ * Possibility to specify scenario language as part of the .feature file (#345 Aslak Hellesøy)
40
+ * Support specifying environment variables using foo=bar syntax on command line or in profiles (#362 Bryan Helmkamp)
41
+ * Display failing scenarios at the end of pretty format to make it easier for people to play them back (#360 Ryan Bigg)
42
+
7
43
  === Changed Features
8
44
  * The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)
9
45
 
data/Manifest.txt CHANGED
@@ -205,6 +205,8 @@ examples/sinatra/features/step_definitions/add_steps.rb
205
205
  examples/sinatra/features/support/env.rb
206
206
  examples/sinatra/views/add.erb
207
207
  examples/sinatra/views/layout.erb
208
+ examples/steps_library/features/step_definitions/steps_lib1.rb
209
+ examples/steps_library/features/step_definitions/steps_lib2.rb
208
210
  examples/test_unit/Rakefile
209
211
  examples/test_unit/features/step_definitions/test_unit_steps.rb
210
212
  examples/test_unit/features/test_unit.feature
@@ -246,6 +248,7 @@ examples/watir/features/support/env.rb
246
248
  features/after_block_exceptions.feature
247
249
  features/after_step_block_exceptions.feature
248
250
  features/background.feature
251
+ features/bug_371.feature
249
252
  features/cucumber_cli.feature
250
253
  features/cucumber_cli_diff_disabled.feature
251
254
  features/cucumber_cli_outlines.feature
@@ -256,12 +259,14 @@ features/expand.feature
256
259
  features/html_formatter.feature
257
260
  features/html_formatter/a.html
258
261
  features/junit_formatter.feature
262
+ features/language_from_header.feature
259
263
  features/multiline_names.feature
260
264
  features/rake_task.feature
261
265
  features/report_called_undefined_steps.feature
262
266
  features/snippet.feature
263
267
  features/step_definitions/cucumber_steps.rb
264
268
  features/step_definitions/extra_steps.rb
269
+ features/steps_formatter.feature
265
270
  features/support/env.rb
266
271
  features/usage.feature
267
272
  features/work_in_progress.feature
@@ -307,6 +312,8 @@ lib/cucumber/core_ext/exception.rb
307
312
  lib/cucumber/core_ext/instance_exec.rb
308
313
  lib/cucumber/core_ext/proc.rb
309
314
  lib/cucumber/core_ext/string.rb
315
+ lib/cucumber/feature_file.rb
316
+ lib/cucumber/filter.rb
310
317
  lib/cucumber/formatter/ansicolor.rb
311
318
  lib/cucumber/formatter/color_io.rb
312
319
  lib/cucumber/formatter/console.rb
@@ -319,6 +326,7 @@ lib/cucumber/formatter/pretty.rb
319
326
  lib/cucumber/formatter/profile.rb
320
327
  lib/cucumber/formatter/progress.rb
321
328
  lib/cucumber/formatter/rerun.rb
329
+ lib/cucumber/formatter/steps.rb
322
330
  lib/cucumber/formatter/tag_cloud.rb
323
331
  lib/cucumber/formatter/unicode.rb
324
332
  lib/cucumber/formatter/usage.rb
@@ -328,6 +336,7 @@ lib/cucumber/parser.rb
328
336
  lib/cucumber/parser/feature.rb
329
337
  lib/cucumber/parser/feature.tt
330
338
  lib/cucumber/parser/i18n.tt
339
+ lib/cucumber/parser/i18n/language.rb
331
340
  lib/cucumber/parser/table.rb
332
341
  lib/cucumber/parser/table.tt
333
342
  lib/cucumber/parser/treetop_ext.rb
data/config/hoe.rb CHANGED
@@ -61,8 +61,7 @@ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
61
61
  #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
62
62
  p.extra_deps = [
63
63
  ['term-ansicolor', '>= 1.0.3'],
64
- ['treetop', '>= 1.2.5'],
65
- ['polyglot', '>= 0.2.5'], # Remove this when Treetop no longer loads polyglot by default.
64
+ ['treetop', '>= 1.2.6'],
66
65
  ['diff-lcs', '>= 1.1.2'],
67
66
  ['builder', '>= 2.1.2']
68
67
  ]
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language ar}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: ar
1
2
  خاصية: الجمع
2
3
  من اجل تجنب الأخطاء السخيفة
3
4
  كشخص غبي في الرياضيات
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language bg}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: bg
1
2
  Функционалност: Събиране на числа
2
3
  За да не го правят наум
3
4
  Потребителите
@@ -1,3 +1,4 @@
1
+ # language: bg
1
2
  Функционалост: Последователни изчисления
2
3
  За да не го правят наум
3
4
  Потребителите
@@ -1,3 +1,4 @@
1
+ # language: bg
1
2
  Фунцкционалност: Делене на числа
2
3
  За да не го правят наум
3
4
  Потребителите
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language cat}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: cat
1
2
  Característica: Suma
2
3
  Per evitar fer errors tontos
3
4
  Com un matemàtic idiota
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language da}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: da
1
2
  Egenskab: Summering
2
3
  For at slippe for at lave dumme fejl
3
4
  Som en regnskabsfører
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language de}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: de
1
2
  Funktionalität: Addition
2
3
  Um dumme Fehler zu vermeiden
3
4
  möchte ich als Matheidiot
@@ -1,3 +1,4 @@
1
+ # language: de
1
2
  Funktionalität: Division
2
3
  Um dumme Fehler zu vermeiden
3
4
  müssen Kassierer in der Lage sein einen Bruchteil zu berechnen
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language en}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: en
1
2
  Feature: Addition
2
3
  In order to avoid silly mistakes
3
4
  As a math idiot
@@ -1,3 +1,4 @@
1
+ # language: en
1
2
  Feature: Division
2
3
  In order to avoid silly mistakes
3
4
  Cashiers must be able to calculate a fraction
@@ -1,4 +1,4 @@
1
- # stuffing.feature
1
+ # language: en-lol
2
2
  OH HAI: STUFFING
3
3
 
4
4
  MISHUN: CUCUMBR
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language es}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: es
1
2
  Característica: adición
2
3
  Para evitar hacer errores tontos
3
4
  Como un matemático idiota
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language et}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: et
1
2
  Omadus: Jagamine
2
3
  Rumalate vigade vältimiseks
3
4
  Peavad kassapidajad saama arvutada murdudes
@@ -1,3 +1,4 @@
1
+ # language: et
1
2
  Omadus: Liitmine
2
3
  Selleks et vältida rumalaid vigu
3
4
  Olles matemaatika-puupea
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language fi}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: fi
1
2
  Ominaisuus: Jakolasku
2
3
  Välttyäkseen hölmöiltä virheiltä
3
4
  Kassanhoitajan on voitava laskea osamäärä
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language fr}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,7 +1,8 @@
1
+ # language: fr
1
2
  Fonctionnalité: Addition
2
3
  Afin de gagner du temps lors du calcul de la facture
3
4
  En tant que commerçant
4
- Je souhaite pouvoir faire une additionn
5
+ Je souhaite pouvoir faire une addition
5
6
 
6
7
  Plan du Scénario: Addition de deux nombres
7
8
  Soit une calculatrice
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language he}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: he
1
2
  תכונה: חיבור
2
3
  כדי למנוע טעויות טפשיות
3
4
  בתור בור מתמטי
@@ -1,3 +1,4 @@
1
+ # language: he
1
2
  תכונה: חילוק
2
3
  כדי למנוע טעויות טפשיות
3
4
  לקופאים חייבת להיות יכולת לחשב שבר
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language hu}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: hu
1
2
  Jellemző: Összeadás
2
3
  Azért, hogy elkerüljem a buta hibákat
3
4
  amit diszkalkúliásként elkövethetek,
@@ -1,3 +1,4 @@
1
+ # language: hu
1
2
  Jellemző: Osztás
2
3
  Azért, hogy elkerüljem a buta hibákat
3
4
  a számológépeknek tudniuk kell osztani.
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language id}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: id
1
2
  Fitur: Addition
2
3
  Untuk menghindari kesalahan konyol
3
4
  Sebagai orang yang gak bisa matematika
@@ -1,3 +1,4 @@
1
+ # language: id
1
2
  Fitur: Division
2
3
  Untuk hindari kesalahan konyol
3
4
  Kasir harus dapat menghitung pembagian
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language it}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: it
1
2
  Funzionalità: somma
2
3
  Per evitare di fare errori stupidi
3
4
  Come utente
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language ja}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: ja
1
2
  フィーチャ: 加算
2
3
  バカな間違いを避けるために
3
4
  数学オンチとして
@@ -1,3 +1,4 @@
1
+ # language: ja
1
2
  フィーチャ: 除算
2
3
  バカな間違いを避けるために
3
4
  有理数も計算できること
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language ko}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: ko
1
2
  기능: 덧셈
2
3
  예기치못한 실수을 방지하기 위해
3
4
  수학을 잘 못하는 사람으로써
@@ -1,3 +1,4 @@
1
+ # language: ko
1
2
  기능: 나눗셈
2
3
  예기치못한 실수을 방지하기 위해
3
4
  분수를 계산 능력 요구한다
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language lt}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: lt
1
2
  Sąvybė: Sudėtis
2
3
  Norint išvengti kvailų klaidų
3
4
  Kaip matematinis idiotas
@@ -1,3 +1,4 @@
1
+ # language: lt
1
2
  Feature: Dalyba
2
3
  Norint išvengti klaidų
3
4
  Kasininkai privalo mokėti skaičiuoti trupmenas
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language lv}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: lv
1
2
  Funkcionalitāte: Saskaitīšana
2
3
  Lai izvairītos no muļķīgām kļūdām
3
4
  Kā matemātikas idiots
@@ -1,3 +1,4 @@
1
+ # language: lv
1
2
  Funkcionalitāte: Dalīšana
2
3
  Lai izvairītos no muļķīgām kļūdām
3
4
  Kasieriem ir jāprot aprēķināt daļas
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language no}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: no
1
2
  Egenskap: Summering
2
3
  For å slippe å gjøre dumme feil
3
4
  Som en regnskapsfører
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language pl}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: pl
1
2
  Właściwość: Dodawanie
2
3
  W celu uniknięcia głupich błędów
3
4
  Jako matematyczny idiota
@@ -1,3 +1,4 @@
1
+ # language: pl
1
2
  Właściwość: Dzielenie
2
3
  W celu uniknięcia głupich błędów
3
4
  Kasjer musi znać się na ułamkach
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language pt}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: pt
1
2
  Funcionalidade: Adição
2
3
  Para evitar erros bobos
3
4
  Como um péssimo matemático
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language ro}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: ro
1
2
  Functionalitate: suma
2
3
  Pentru a nu face erori stupide
3
4
  Ca utilizator
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language ru}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: ru
1
2
  Функционал: Сложение чисел
2
3
  Чтобы не складывать в уме
3
4
  Все, у кого с этим туго
@@ -1,3 +1,4 @@
1
+ # language: ru
1
2
  Функционал: Последовательные вычисления
2
3
  Чтобы вычислять сложные выражения
3
4
  Пользователи хотят проводить вычисления над результатом предыдущей операций
@@ -1,3 +1,4 @@
1
+ # language: ru
1
2
  Функционал: Деление чисел
2
3
  Поскольку деление сложный процесс и люди часто допускают ошибки
3
4
  Нужно дать им возможность делить на калькуляторе
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language se}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: se
1
2
  Egenskap: Summering
2
3
  För att slippa att göra dumma fel
3
4
  Som räknare
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__) + '/../../../lib')
2
2
  require 'cucumber/rake/task'
3
3
 
4
4
  Cucumber::Rake::Task.new do |t|
5
- t.cucumber_opts = %w{--language sk}
5
+ t.cucumber_opts = %w{--format pretty}
6
6
  end
@@ -1,3 +1,4 @@
1
+ # language: sk
1
2
  Požiadavka: Sčítavanie
2
3
  Aby som sa vyhol hlúpym chybám
3
4
  Ako matematický idiot
@@ -1,3 +1,4 @@
1
+ # language: sk
1
2
  Požiadavka: Delenie
2
3
  Aby som sa vyhol hlúpym chybám
3
4
  Pokladníci musia vedieť vypočítať podiel
@@ -1,3 +1,4 @@
1
+ # language: zh-CN
1
2
  功能:加法
2
3
  为了避免一些愚蠢的错误
3
4
  作为一个数学白痴
@@ -1,3 +1,4 @@
1
+ # language: zh-TW
1
2
  功能: 加法
2
3
  為了避免愚蠢的錯誤
3
4
  作為一個數學白痴
@@ -1,3 +1,4 @@
1
+ # language: zh-TW
1
2
  功能: 除法
2
3
  為了避免愚蠢的錯誤
3
4
  收銀機必須要能夠計算除法
@@ -11,5 +11,5 @@ When /^I press '(.*)'$/ do |name|
11
11
  end
12
12
 
13
13
  Then /^I should see '(.*)'$/ do |text|
14
- response.should contain(/#{text}/m)
14
+ response_body.should contain(/#{text}/m)
15
15
  end