aslakhellesoy-cucumber 0.3.101 → 0.3.101.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/History.txt +26 -2
  2. data/Manifest.txt +6 -4
  3. data/config/hoe.rb +2 -2
  4. data/examples/pure_java/README.textile +2 -2
  5. data/examples/self_test/features/step_definitions/sample_steps.rb +0 -12
  6. data/examples/self_test/features/support/env.rb +0 -6
  7. data/features/cucumber_cli.feature +11 -24
  8. data/features/custom_formatter.feature +2 -2
  9. data/features/default_snippets.feature +42 -0
  10. data/features/html_formatter/a.html +1 -1
  11. data/features/negative_tagged_hooks.feature +61 -0
  12. data/features/step_definitions/cucumber_steps.rb +1 -1
  13. data/features/transform.feature +88 -12
  14. data/features/usage.feature +0 -6
  15. data/lib/cucumber/ast/feature.rb +4 -0
  16. data/lib/cucumber/ast/feature_element.rb +49 -42
  17. data/lib/cucumber/ast/step_invocation.rb +1 -1
  18. data/lib/cucumber/ast/tags.rb +25 -3
  19. data/lib/cucumber/cli/drb_client.rb +7 -1
  20. data/lib/cucumber/cli/main.rb +4 -3
  21. data/lib/cucumber/cli/options.rb +13 -24
  22. data/lib/cucumber/core_ext/instance_exec.rb +2 -1
  23. data/lib/cucumber/filter.rb +2 -12
  24. data/lib/cucumber/formatter/console.rb +21 -21
  25. data/lib/cucumber/formatter/html.rb +1 -1
  26. data/lib/cucumber/formatter/pdf.rb +1 -1
  27. data/lib/cucumber/formatter/pretty.rb +1 -1
  28. data/lib/cucumber/language_support/language_methods.rb +19 -2
  29. data/lib/cucumber/parser/feature.rb +13 -50
  30. data/lib/cucumber/parser/feature.tt +13 -47
  31. data/lib/cucumber/parser/natural_language.rb +1 -1
  32. data/lib/cucumber/rails/action_controller.rb +33 -0
  33. data/lib/cucumber/rails/active_record.rb +27 -0
  34. data/lib/cucumber/rails/rspec.rb +1 -1
  35. data/lib/cucumber/rails/test_unit.rb +9 -0
  36. data/lib/cucumber/rails/world.rb +7 -78
  37. data/lib/cucumber/rb_support/rb_dsl.rb +6 -4
  38. data/lib/cucumber/rb_support/rb_language.rb +8 -2
  39. data/lib/cucumber/rb_support/rb_step_definition.rb +2 -5
  40. data/lib/cucumber/rb_support/rb_transform.rb +35 -0
  41. data/lib/cucumber/rb_support/rb_world.rb +7 -1
  42. data/lib/cucumber/step_match.rb +1 -1
  43. data/lib/cucumber/step_mother.rb +8 -31
  44. data/lib/cucumber/version.rb +1 -1
  45. data/rails_generators/cucumber/templates/cucumber_environment.rb +2 -2
  46. data/rails_generators/cucumber/templates/env.rb +1 -8
  47. data/spec/cucumber/ast/feature_element_spec.rb +24 -23
  48. data/spec/cucumber/ast/scenario_outline_spec.rb +1 -1
  49. data/spec/cucumber/cli/options_spec.rb +5 -14
  50. data/spec/cucumber/parser/feature_parser_spec.rb +6 -6
  51. data/spec/cucumber/step_mother_spec.rb +41 -38
  52. metadata +10 -8
  53. data/examples/self_test/features/transform_sample.feature +0 -10
  54. data/spec/cucumber/rails/stubs/mini_rails.rb +0 -18
  55. data/spec/cucumber/rails/stubs/test_help.rb +0 -1
  56. data/spec/cucumber/rails/world_spec.rb +0 -16
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.3.101
4
+ version: 0.3.101.2
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-09-15 00:00:00 -07:00
12
+ date: 2009-09-21 00:00:00 -07:00
13
13
  default_executable: cucumber
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.0
33
+ version: 1.4.2
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: polyglot
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.2.8
43
+ version: 0.2.9
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: diff-lcs
@@ -289,7 +289,6 @@ files:
289
289
  - examples/self_test/features/support/env.rb
290
290
  - examples/self_test/features/tags_sample.feature
291
291
  - examples/self_test/features/tons_of_cukes.feature
292
- - examples/self_test/features/transform_sample.feature
293
292
  - examples/self_test/features/undefined_multiline_args.feature
294
293
  - examples/self_test/list-of-features.txt
295
294
  - examples/sinatra/README.textile
@@ -347,6 +346,7 @@ files:
347
346
  - features/cucumber_cli_diff_disabled.feature
348
347
  - features/cucumber_cli_outlines.feature
349
348
  - features/custom_formatter.feature
349
+ - features/default_snippets.feature
350
350
  - features/drb_server_integration.feature
351
351
  - features/exception_in_after_block.feature
352
352
  - features/exception_in_after_step_block.feature
@@ -358,6 +358,7 @@ files:
358
358
  - features/junit_formatter.feature
359
359
  - features/language_from_header.feature
360
360
  - features/multiline_names.feature
361
+ - features/negative_tagged_hooks.feature
361
362
  - features/post_configuration_hook.feature
362
363
  - features/profiles.feature
363
364
  - features/rake_task.feature
@@ -455,13 +456,17 @@ files:
455
456
  - lib/cucumber/py_support/py_dsl.py
456
457
  - lib/cucumber/py_support/py_language.py
457
458
  - lib/cucumber/py_support/py_language.rb
459
+ - lib/cucumber/rails/action_controller.rb
460
+ - lib/cucumber/rails/active_record.rb
458
461
  - lib/cucumber/rails/rspec.rb
462
+ - lib/cucumber/rails/test_unit.rb
459
463
  - lib/cucumber/rails/world.rb
460
464
  - lib/cucumber/rake/task.rb
461
465
  - lib/cucumber/rb_support/rb_dsl.rb
462
466
  - lib/cucumber/rb_support/rb_hook.rb
463
467
  - lib/cucumber/rb_support/rb_language.rb
464
468
  - lib/cucumber/rb_support/rb_step_definition.rb
469
+ - lib/cucumber/rb_support/rb_transform.rb
465
470
  - lib/cucumber/rb_support/rb_world.rb
466
471
  - lib/cucumber/rspec_neuter.rb
467
472
  - lib/cucumber/step_match.rb
@@ -507,9 +512,6 @@ files:
507
512
  - spec/cucumber/formatter/progress_spec.rb
508
513
  - spec/cucumber/parser/feature_parser_spec.rb
509
514
  - spec/cucumber/parser/table_parser_spec.rb
510
- - spec/cucumber/rails/stubs/mini_rails.rb
511
- - spec/cucumber/rails/stubs/test_help.rb
512
- - spec/cucumber/rails/world_spec.rb
513
515
  - spec/cucumber/rb_support/rb_step_definition_spec.rb
514
516
  - spec/cucumber/sell_cucumbers.feature
515
517
  - spec/cucumber/step_mother_spec.rb
@@ -1,10 +0,0 @@
1
- Feature: Step argument transformations
2
-
3
- Scenario: transform with matches
4
- Then I should transform '10' to an Integer
5
-
6
- Scenario: transform with matches that capture
7
- Then I should transform 'abc' to a Symbol
8
-
9
- Scenario: transform without matches
10
- Then I should not transform '10' to an Integer
@@ -1,18 +0,0 @@
1
- # Define some stubs to fake Rails...
2
- module ActiveRecord
3
- class Base
4
- end
5
- end
6
-
7
- module ActionController
8
- class Dispatcher
9
- end
10
-
11
- class Base
12
- end
13
-
14
- class IntegrationTest
15
- def self.use_transactional_fixtures=(x)
16
- end
17
- end
18
- end
@@ -1 +0,0 @@
1
- # This file is loaded by rails/world.rb
@@ -1,16 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../spec_helper'
2
- $:.unshift(File.dirname(__FILE__) + '/stubs')
3
-
4
- describe "Rails world" do
5
-
6
- it "should run without Test::Unit.run defined" do
7
- require "mini_rails"
8
-
9
- step_mother = Cucumber::StepMother.new
10
- step_mother.load_natural_language('en')
11
- rb = step_mother.load_programming_language('rb')
12
-
13
- require "cucumber/rails/world"
14
- end
15
-
16
- end