aslakhellesoy-cucumber 0.1.99.23 → 0.1.100.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/History.txt +2 -6
  2. data/Manifest.txt +8 -2
  3. data/examples/i18n/et/features/jagamine.feature +9 -0
  4. data/examples/jbehave/README.textile +4 -1
  5. data/examples/jbehave/features/trading.feature +4 -0
  6. data/examples/jbehave/pom.xml +5 -0
  7. data/examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java +6 -1
  8. data/examples/selenium/features/step_definitons/search_steps.rb +13 -0
  9. data/examples/selenium/features/support/env.rb +19 -0
  10. data/examples/selenium_webrat/Rakefile +6 -0
  11. data/examples/selenium_webrat/features/search.feature +9 -0
  12. data/examples/selenium_webrat/features/step_definitons/search_steps.rb +13 -0
  13. data/examples/selenium_webrat/features/support/env.rb +41 -0
  14. data/examples/self_test/features/background/failing_background.feature +1 -0
  15. data/examples/self_test/features/step_definitions/sample_steps.rb +1 -1
  16. data/examples/self_test/features/support/tag_count_formatter.rb +1 -1
  17. data/features/background.feature +9 -11
  18. data/features/cucumber_cli.feature +24 -1
  19. data/features/cucumber_cli_outlines.feature +10 -19
  20. data/features/report_called_undefined_steps.feature +2 -0
  21. data/gem_tasks/rspec.rake +2 -0
  22. data/lib/cucumber.rb +7 -15
  23. data/lib/cucumber/ast.rb +3 -3
  24. data/lib/cucumber/ast/background.rb +28 -66
  25. data/lib/cucumber/ast/examples.rb +15 -3
  26. data/lib/cucumber/ast/feature.rb +20 -24
  27. data/lib/cucumber/ast/feature_element.rb +46 -0
  28. data/lib/cucumber/ast/features.rb +2 -21
  29. data/lib/cucumber/ast/outline_table.rb +46 -14
  30. data/lib/cucumber/ast/py_string.rb +8 -3
  31. data/lib/cucumber/ast/scenario.rb +34 -73
  32. data/lib/cucumber/ast/scenario_outline.rb +40 -42
  33. data/lib/cucumber/ast/step.rb +53 -89
  34. data/lib/cucumber/ast/step_collection.rb +66 -0
  35. data/lib/cucumber/ast/step_invocation.rb +106 -0
  36. data/lib/cucumber/ast/table.rb +38 -19
  37. data/lib/cucumber/ast/tags.rb +4 -11
  38. data/lib/cucumber/ast/visitor.rb +31 -19
  39. data/lib/cucumber/broadcaster.rb +1 -1
  40. data/lib/cucumber/cli/configuration.rb +24 -16
  41. data/lib/cucumber/cli/language_help_formatter.rb +4 -4
  42. data/lib/cucumber/cli/main.rb +5 -4
  43. data/lib/cucumber/core_ext/proc.rb +2 -2
  44. data/lib/cucumber/formatter/ansicolor.rb +0 -1
  45. data/lib/cucumber/formatter/console.rb +18 -34
  46. data/lib/cucumber/formatter/html.rb +13 -10
  47. data/lib/cucumber/formatter/pretty.rb +48 -36
  48. data/lib/cucumber/formatter/profile.rb +6 -6
  49. data/lib/cucumber/formatter/progress.rb +12 -20
  50. data/lib/cucumber/formatter/rerun.rb +5 -5
  51. data/lib/cucumber/jbehave.rb +21 -26
  52. data/lib/cucumber/parser/feature.rb +26 -29
  53. data/lib/cucumber/parser/feature.tt +17 -12
  54. data/lib/cucumber/parser/treetop_ext.rb +13 -13
  55. data/lib/cucumber/platform.rb +0 -1
  56. data/lib/cucumber/rails/world.rb +2 -2
  57. data/lib/cucumber/rake/task.rb +0 -1
  58. data/lib/cucumber/step_definition.rb +21 -12
  59. data/lib/cucumber/step_match.rb +49 -0
  60. data/lib/cucumber/step_mother.rb +98 -80
  61. data/lib/cucumber/version.rb +2 -2
  62. data/lib/cucumber/world.rb +42 -0
  63. data/rails_generators/cucumber/templates/paths.rb +1 -1
  64. data/rails_generators/cucumber/templates/webrat_steps.rb +17 -17
  65. data/rails_generators/feature/feature_generator.rb +4 -0
  66. data/rails_generators/feature/templates/steps.erb +0 -4
  67. data/spec/cucumber/ast/background_spec.rb +32 -41
  68. data/spec/cucumber/ast/feature_factory.rb +10 -1
  69. data/spec/cucumber/ast/feature_spec.rb +7 -30
  70. data/spec/cucumber/ast/scenario_outline_spec.rb +3 -0
  71. data/spec/cucumber/ast/scenario_spec.rb +8 -25
  72. data/spec/cucumber/ast/step_collection_spec.rb +8 -0
  73. data/spec/cucumber/ast/step_spec.rb +37 -29
  74. data/spec/cucumber/ast/tags_spec.rb +2 -18
  75. data/spec/cucumber/cli/configuration_spec.rb +7 -0
  76. data/spec/cucumber/cli/main_spec.rb +1 -1
  77. data/spec/cucumber/parser/feature_parser_spec.rb +6 -5
  78. data/spec/cucumber/step_definition_spec.rb +5 -5
  79. data/spec/cucumber/step_mother_spec.rb +6 -6
  80. data/spec/cucumber/world/pending_spec.rb +1 -1
  81. metadata +17 -5
  82. data/lib/cucumber/ast/filter.rb +0 -22
  83. data/lib/cucumber/ast/steps.rb +0 -13
@@ -7,7 +7,7 @@ module Cucumber
7
7
  before(:each) do
8
8
  @step_mom = Object.new
9
9
  @step_mom.extend(StepMother)
10
- @world = @step_mom.new_world
10
+ @world = @step_mom.__send__(:new_world!)
11
11
  end
12
12
 
13
13
  it 'should raise a Pending if no block is supplied' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslakhellesoy-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.99.23
4
+ version: 0.1.100.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-13 00:00:00 -07:00
12
+ date: 2009-03-16 00:00:00 -07:00
13
13
  default_executable: cucumber
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -127,6 +127,7 @@ files:
127
127
  - examples/i18n/es/features/step_definitons/calculador_steps.rb
128
128
  - examples/i18n/es/lib/calculador.rb
129
129
  - examples/i18n/et/Rakefile
130
+ - examples/i18n/et/features/jagamine.feature
130
131
  - examples/i18n/et/features/liitmine.feature
131
132
  - examples/i18n/et/features/step_definitions/kalkulaator_steps.rb
132
133
  - examples/i18n/et/lib/kalkulaator.rb
@@ -213,9 +214,15 @@ files:
213
214
  - examples/jbehave/src/main/java/cukes/jbehave/examples/trader/model/Trader.java
214
215
  - examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
215
216
  - examples/jbehave/src/main/java/cukes/jbehave/examples/trader/scenarios/TraderSteps.java
217
+ - examples/jbehave/target/maven-archiver/pom.properties
216
218
  - examples/selenium/Rakefile
217
219
  - examples/selenium/features/search.feature
218
- - examples/selenium/features/step_definitons/stories_steps.rb
220
+ - examples/selenium/features/step_definitons/search_steps.rb
221
+ - examples/selenium/features/support/env.rb
222
+ - examples/selenium_webrat/Rakefile
223
+ - examples/selenium_webrat/features/search.feature
224
+ - examples/selenium_webrat/features/step_definitons/search_steps.rb
225
+ - examples/selenium_webrat/features/support/env.rb
219
226
  - examples/self_test/README.textile
220
227
  - examples/self_test/Rakefile
221
228
  - examples/self_test/features/background/failing_background.feature
@@ -291,14 +298,15 @@ files:
291
298
  - lib/cucumber/ast/comment.rb
292
299
  - lib/cucumber/ast/examples.rb
293
300
  - lib/cucumber/ast/feature.rb
301
+ - lib/cucumber/ast/feature_element.rb
294
302
  - lib/cucumber/ast/features.rb
295
- - lib/cucumber/ast/filter.rb
296
303
  - lib/cucumber/ast/outline_table.rb
297
304
  - lib/cucumber/ast/py_string.rb
298
305
  - lib/cucumber/ast/scenario.rb
299
306
  - lib/cucumber/ast/scenario_outline.rb
300
307
  - lib/cucumber/ast/step.rb
301
- - lib/cucumber/ast/steps.rb
308
+ - lib/cucumber/ast/step_collection.rb
309
+ - lib/cucumber/ast/step_invocation.rb
302
310
  - lib/cucumber/ast/table.rb
303
311
  - lib/cucumber/ast/tags.rb
304
312
  - lib/cucumber/ast/visitor.rb
@@ -338,8 +346,10 @@ files:
338
346
  - lib/cucumber/rails/world.rb
339
347
  - lib/cucumber/rake/task.rb
340
348
  - lib/cucumber/step_definition.rb
349
+ - lib/cucumber/step_match.rb
341
350
  - lib/cucumber/step_mother.rb
342
351
  - lib/cucumber/version.rb
352
+ - lib/cucumber/world.rb
343
353
  - rails_generators/cucumber/USAGE
344
354
  - rails_generators/cucumber/cucumber_generator.rb
345
355
  - rails_generators/cucumber/templates/cucumber
@@ -357,6 +367,7 @@ files:
357
367
  - spec/cucumber/ast/py_string_spec.rb
358
368
  - spec/cucumber/ast/scenario_outline_spec.rb
359
369
  - spec/cucumber/ast/scenario_spec.rb
370
+ - spec/cucumber/ast/step_collection_spec.rb
360
371
  - spec/cucumber/ast/step_spec.rb
361
372
  - spec/cucumber/ast/table_spec.rb
362
373
  - spec/cucumber/ast/tags_spec.rb
@@ -397,6 +408,7 @@ files:
397
408
  - spec/cucumber/world/pending_spec.rb
398
409
  - spec/spec.opts
399
410
  - spec/spec_helper.rb
411
+ - target/maven-archiver/pom.properties
400
412
  has_rdoc: true
401
413
  homepage: http://cukes.info
402
414
  post_install_message:
@@ -1,22 +0,0 @@
1
- module Cucumber
2
- module Ast
3
- class Filter
4
- def initialize(options)
5
- @options = options
6
- end
7
-
8
- def matched?(node)
9
- matched_by_tags?(node) &&
10
- matched_by_scenario_names?(node)
11
- end
12
-
13
- def matched_by_tags?(node)
14
- @options[:tags].empty? || node.tagged_with?(@options[:tags])
15
- end
16
-
17
- def matched_by_scenario_names?(node)
18
- @options[:scenario_names].empty? || node.matches_scenario_names?(@options[:scenario_names])
19
- end
20
- end
21
- end
22
- end
@@ -1,13 +0,0 @@
1
- module Cucumber
2
- module Ast
3
- class Steps
4
- def initialize(scenario)
5
- @scenario = scenario
6
- end
7
-
8
- def accept(visitor)
9
- @scenario.accept_steps(visitor)
10
- end
11
- end
12
- end
13
- end