cucumber 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +21 -1
- data/Manifest.txt +49 -47
- data/bin/cucumber +1 -1
- data/config/hoe.rb +2 -2
- data/examples/i18n/Rakefile +6 -8
- data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ar/lib/calculator.rb +1 -0
- data/examples/i18n/da/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/de/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/en/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/es/features/step_definitons/calculador_steps.rb +1 -1
- data/examples/i18n/et/features/step_definitions/kalkulaator_steps.rb +1 -1
- data/examples/i18n/fi/features/step_definitons/laskin_steps.rb +1 -1
- data/examples/i18n/fr/features/step_definitions/calculatrice_steps.rb +1 -1
- data/examples/i18n/id/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/it/features/step_definitons/calcolatrice_steps.rb +1 -1
- data/examples/i18n/ja/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ko/features/addition.feature +1 -1
- data/examples/i18n/ko/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/lt/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/no/features/support/env.rb +1 -1
- data/examples/i18n/pt/features/step_definitions/calculadora_steps.rb +1 -1
- data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/ru/features/support/env.rb +1 -1
- data/examples/i18n/se/features/step_definitons/kalkulator_steps.rb +1 -1
- data/examples/i18n/zh-CN/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/i18n/zh-TW/features/step_definitons/calculator_steps.rb +1 -1
- data/examples/tickets/features/246.feature +4 -0
- data/examples/tickets/features/step_definitons/246_steps.rb +3 -0
- data/features/cucumber_cli_outlines.feature +1 -1
- data/gem_tasks/rspec.rake +3 -2
- data/lib/cucumber/ast/outline_table.rb +1 -1
- data/lib/cucumber/ast/table.rb +21 -0
- data/lib/cucumber/formatter/ansicolor.rb +10 -2
- data/lib/cucumber/languages.yml +51 -3
- data/lib/cucumber/parser.rb +2 -7
- data/lib/cucumber/parser/feature.rb +34 -39
- data/lib/cucumber/parser/feature.tt +1 -1
- data/lib/cucumber/parser/i18n.tt +4 -0
- data/lib/cucumber/step_definition.rb +9 -12
- data/lib/cucumber/step_mother.rb +3 -2
- data/lib/cucumber/version.rb +1 -1
- data/rails_generators/cucumber/templates/env.rb +1 -1
- data/rails_generators/cucumber/templates/paths.rb +2 -1
- data/rails_generators/cucumber/templates/webrat_steps.rb +8 -0
- data/{spec → specs}/cucumber/ast/background_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/feature_factory.rb +0 -0
- data/{spec → specs}/cucumber/ast/feature_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/py_string_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/scenario_outline_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/scenario_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/step_collection_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/step_spec.rb +0 -0
- data/{spec → specs}/cucumber/ast/table_spec.rb +21 -0
- data/{spec → specs}/cucumber/ast/tags_spec.rb +0 -0
- data/{spec → specs}/cucumber/broadcaster_spec.rb +0 -0
- data/{spec → specs}/cucumber/cli/configuration_spec.rb +0 -0
- data/{spec → specs}/cucumber/cli/main_spec.rb +0 -0
- data/{spec → specs}/cucumber/core_ext/proc_spec.rb +1 -1
- data/{spec → specs}/cucumber/core_ext/string_spec.rb +0 -0
- data/{spec → specs}/cucumber/formatter/ansicolor_spec.rb +0 -0
- data/{spec → specs}/cucumber/formatter/color_io_spec.rb +0 -0
- data/{spec → specs}/cucumber/formatter/html/cucumber.css +0 -0
- data/{spec → specs}/cucumber/formatter/html/cucumber.js +0 -0
- data/{spec → specs}/cucumber/formatter/html/index.html +0 -0
- data/{spec → specs}/cucumber/formatter/html/jquery-1.3.min.js +0 -0
- data/{spec → specs}/cucumber/formatter/html/jquery.uitableedit.js +0 -0
- data/{spec → specs}/cucumber/formatters/profile_formatter_spec.rb +0 -0
- data/{spec → specs}/cucumber/parser/feature_parser_spec.rb +0 -0
- data/{spec → specs}/cucumber/parser/table_parser_spec.rb +0 -0
- data/{spec → specs}/cucumber/rails/stubs/mini_rails.rb +0 -0
- data/{spec → specs}/cucumber/rails/stubs/test_help.rb +0 -0
- data/{spec → specs}/cucumber/rails/world_spec.rb +0 -0
- data/{spec → specs}/cucumber/sell_cucumbers.feature +0 -0
- data/{spec → specs}/cucumber/step_definition_spec.rb +8 -0
- data/{spec → specs}/cucumber/step_mother_spec.rb +19 -3
- data/{spec → specs}/cucumber/treetop_parser/empty_feature.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/empty_scenario.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/empty_scenario_outline.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/fit_scenario.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/given_scenario.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/invalid_scenario_outlines.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/multiline_steps.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/multiple_tables.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/scenario_outline.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/spaces.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/test_dos.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/with_comments.feature +0 -0
- data/{spec → specs}/cucumber/treetop_parser/with_tags.feature +0 -0
- data/{spec → specs}/cucumber/world/pending_spec.rb +0 -0
- data/{spec → specs}/spec.opts +0 -0
- data/{spec → specs}/spec_helper.rb +0 -0
- metadata +54 -52
data/History.txt
CHANGED
@@ -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/
|
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)
|
data/Manifest.txt
CHANGED
@@ -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
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
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
|
data/bin/cucumber
CHANGED
@@ -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.
|
data/config/hoe.rb
CHANGED
@@ -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.
|
64
|
-
['polyglot', '>= 0.2.
|
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
|
]
|
data/examples/i18n/Rakefile
CHANGED
@@ -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
|
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
|
-
!!!!!
|
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
|
23
|
-
|
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/
|
4
|
+
require 'cucumber/formatter/unicode'
|
5
5
|
require 'calculatrice'
|
6
6
|
|
7
7
|
Soit /^une calculatrice$/ do
|
data/gem_tasks/rspec.rake
CHANGED
@@ -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', "
|
33
|
-
t.spec_files = FileList['
|
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
|