aslakhellesoy-cucumber 0.3.11.6 → 0.3.11.200907091518
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.
- data/History.txt +49 -1
 - data/Manifest.txt +3 -0
 - data/examples/i18n/no/features/step_definitons/kalkulator_steps.rb +1 -1
 - data/examples/self_test/features/support/env.rb +2 -1
 - data/examples/steps_library/features/step_definitions/steps_lib1.rb +8 -0
 - data/examples/steps_library/features/step_definitions/steps_lib2.rb +8 -0
 - data/examples/tickets/features/step_definitons/tickets_steps.rb +15 -0
 - data/features/html_formatter/a.html +4 -4
 - data/features/rake_task.feature +28 -0
 - data/features/steps_formatter.feature +25 -0
 - data/features/support/env.rb +5 -0
 - data/lib/cucumber/ast/outline_table.rb +2 -1
 - data/lib/cucumber/ast/py_string.rb +0 -1
 - data/lib/cucumber/ast/step.rb +4 -1
 - data/lib/cucumber/ast/table.rb +286 -48
 - data/lib/cucumber/ast/visitor.rb +2 -1
 - data/lib/cucumber/cli/configuration.rb +8 -2
 - data/lib/cucumber/cli/language_help_formatter.rb +9 -7
 - data/lib/cucumber/feature_file.rb +7 -1
 - data/lib/cucumber/filter.rb +2 -2
 - data/lib/cucumber/formatter/html.rb +1 -1
 - data/lib/cucumber/formatter/pretty.rb +20 -5
 - data/lib/cucumber/formatter/progress.rb +1 -1
 - data/lib/cucumber/formatter/steps.rb +49 -0
 - data/lib/cucumber/parser/feature.rb +27 -0
 - data/lib/cucumber/parser/i18n/language.rb +8 -5
 - data/lib/cucumber/rake/task.rb +6 -0
 - data/lib/cucumber/step_match.rb +1 -1
 - data/lib/cucumber/version.rb +1 -1
 - data/rails_generators/cucumber/templates/env.rb +1 -0
 - data/rails_generators/feature/templates/feature.erb +1 -1
 - data/rails_generators/feature/templates/steps.erb +2 -8
 - data/spec/cucumber/ast/table_spec.rb +144 -0
 - data/spec/cucumber/cli/configuration_spec.rb +13 -0
 - data/spec/cucumber/cli/main_spec.rb +0 -1
 - data/spec/cucumber/formatter/progress_spec.rb +2 -2
 - metadata +8 -4
 
| 
         @@ -55,6 +55,19 @@ module Cli 
     | 
|
| 
       55 
55 
     | 
    
         
             
                  ]
         
     | 
| 
       56 
56 
     | 
    
         
             
                end
         
     | 
| 
       57 
57 
     | 
    
         | 
| 
      
 58 
     | 
    
         
            +
                it "should require files in vendor/{plugins,gems}/*/cucumber/*.rb" do
         
     | 
| 
      
 59 
     | 
    
         
            +
                  given_the_following_files("/vendor/plugins/plugin_a/cucumber/foo.rb",
         
     | 
| 
      
 60 
     | 
    
         
            +
                                            "/vendor/gems/gem_a/cucumber/bar.rb")
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
                  config = Configuration.new(StringIO.new)
         
     | 
| 
      
 63 
     | 
    
         
            +
                  config.parse!(%w{--require /features})
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                  config.files_to_require.should == [
         
     | 
| 
      
 66 
     | 
    
         
            +
                    "/vendor/plugins/plugin_a/cucumber/foo.rb",
         
     | 
| 
      
 67 
     | 
    
         
            +
                    "/vendor/gems/gem_a/cucumber/bar.rb"
         
     | 
| 
      
 68 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 69 
     | 
    
         
            +
                end
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
       58 
71 
     | 
    
         
             
                describe "--exclude" do
         
     | 
| 
       59 
72 
     | 
    
         | 
| 
       60 
73 
     | 
    
         
             
                  it "excludes a ruby file from requiring when the name matches exactly" do
         
     | 
| 
         @@ -17,7 +17,7 @@ module Cucumber 
     | 
|
| 
       17 
17 
     | 
    
         
             
                  describe "visiting a table cell value without a status" do
         
     | 
| 
       18 
18 
     | 
    
         
             
                    it "should take the status from the last run step" do
         
     | 
| 
       19 
19 
     | 
    
         
             
                      @progress.visit_step_result('', '', nil, :failed, nil, 10, nil)
         
     | 
| 
       20 
     | 
    
         
            -
                      @progress.visit_table_cell_value('value',  
     | 
| 
      
 20 
     | 
    
         
            +
                      @progress.visit_table_cell_value('value', nil)
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
                      @out.string.should == "FF"
         
     | 
| 
       23 
23 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -25,7 +25,7 @@ module Cucumber 
     | 
|
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
                  describe "visiting a table cell which is a table header" do
         
     | 
| 
       27 
27 
     | 
    
         
             
                    it "should not output anything" do
         
     | 
| 
       28 
     | 
    
         
            -
                      @progress.visit_table_cell_value('value',  
     | 
| 
      
 28 
     | 
    
         
            +
                      @progress.visit_table_cell_value('value', :skipped_param)
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
30 
     | 
    
         
             
                      @out.string.should == ""
         
     | 
| 
       31 
31 
     | 
    
         
             
                    end
         
     | 
    
        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.11. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.3.11.200907091518
         
     | 
| 
       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- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2009-07-09 00:00:00 -07:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: cucumber
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -272,6 +272,8 @@ files: 
     | 
|
| 
       272 
272 
     | 
    
         
             
            - examples/sinatra/features/support/env.rb
         
     | 
| 
       273 
273 
     | 
    
         
             
            - examples/sinatra/views/add.erb
         
     | 
| 
       274 
274 
     | 
    
         
             
            - examples/sinatra/views/layout.erb
         
     | 
| 
      
 275 
     | 
    
         
            +
            - examples/steps_library/features/step_definitions/steps_lib1.rb
         
     | 
| 
      
 276 
     | 
    
         
            +
            - examples/steps_library/features/step_definitions/steps_lib2.rb
         
     | 
| 
       275 
277 
     | 
    
         
             
            - examples/test_unit/Rakefile
         
     | 
| 
       276 
278 
     | 
    
         
             
            - examples/test_unit/features/step_definitions/test_unit_steps.rb
         
     | 
| 
       277 
279 
     | 
    
         
             
            - examples/test_unit/features/test_unit.feature
         
     | 
| 
         @@ -331,6 +333,7 @@ files: 
     | 
|
| 
       331 
333 
     | 
    
         
             
            - features/snippet.feature
         
     | 
| 
       332 
334 
     | 
    
         
             
            - features/step_definitions/cucumber_steps.rb
         
     | 
| 
       333 
335 
     | 
    
         
             
            - features/step_definitions/extra_steps.rb
         
     | 
| 
      
 336 
     | 
    
         
            +
            - features/steps_formatter.feature
         
     | 
| 
       334 
337 
     | 
    
         
             
            - features/support/env.rb
         
     | 
| 
       335 
338 
     | 
    
         
             
            - features/usage.feature
         
     | 
| 
       336 
339 
     | 
    
         
             
            - features/work_in_progress.feature
         
     | 
| 
         @@ -390,6 +393,7 @@ files: 
     | 
|
| 
       390 
393 
     | 
    
         
             
            - lib/cucumber/formatter/profile.rb
         
     | 
| 
       391 
394 
     | 
    
         
             
            - lib/cucumber/formatter/progress.rb
         
     | 
| 
       392 
395 
     | 
    
         
             
            - lib/cucumber/formatter/rerun.rb
         
     | 
| 
      
 396 
     | 
    
         
            +
            - lib/cucumber/formatter/steps.rb
         
     | 
| 
       393 
397 
     | 
    
         
             
            - lib/cucumber/formatter/tag_cloud.rb
         
     | 
| 
       394 
398 
     | 
    
         
             
            - lib/cucumber/formatter/unicode.rb
         
     | 
| 
       395 
399 
     | 
    
         
             
            - lib/cucumber/formatter/usage.rb
         
     | 
| 
         @@ -471,7 +475,7 @@ files: 
     | 
|
| 
       471 
475 
     | 
    
         
             
            - spec/cucumber/world/pending_spec.rb
         
     | 
| 
       472 
476 
     | 
    
         
             
            - spec/spec.opts
         
     | 
| 
       473 
477 
     | 
    
         
             
            - spec/spec_helper.rb
         
     | 
| 
       474 
     | 
    
         
            -
            has_rdoc:  
     | 
| 
      
 478 
     | 
    
         
            +
            has_rdoc: true
         
     | 
| 
       475 
479 
     | 
    
         
             
            homepage: http://cukes.info
         
     | 
| 
       476 
480 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       477 
481 
     | 
    
         
             
            rdoc_options: 
         
     | 
| 
         @@ -496,7 +500,7 @@ requirements: [] 
     | 
|
| 
       496 
500 
     | 
    
         
             
            rubyforge_project: rspec
         
     | 
| 
       497 
501 
     | 
    
         
             
            rubygems_version: 1.2.0
         
     | 
| 
       498 
502 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       499 
     | 
    
         
            -
            specification_version:  
     | 
| 
      
 503 
     | 
    
         
            +
            specification_version: 2
         
     | 
| 
       500 
504 
     | 
    
         
             
            summary: Executable Feature scenarios
         
     | 
| 
       501 
505 
     | 
    
         
             
            test_files: []
         
     | 
| 
       502 
506 
     | 
    
         |