acceptance_test 1.10.9 → 1.10.10
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.
- checksums.yaml +8 -8
- data/CHANGES +4 -0
- data/lib/acceptance_test/acceptance_config.rb +13 -4
- data/lib/acceptance_test/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            !binary "U0hBMQ==":
         | 
| 3 3 | 
             
              metadata.gz: !binary |-
         | 
| 4 | 
            -
                 | 
| 4 | 
            +
                N2Q2NTllZDZmNDE3MGJjZjBkOTQzNWU1YzBiODQ0Y2M1MWQ3MTVkZQ==
         | 
| 5 5 | 
             
              data.tar.gz: !binary |-
         | 
| 6 | 
            -
                 | 
| 6 | 
            +
                MjlhMmU4ZTA5NmU1YTZjZTY2YjIyYjY5MzMyYTNmMjg1YzgwYTJjNg==
         | 
| 7 7 | 
             
            SHA512:
         | 
| 8 8 | 
             
              metadata.gz: !binary |-
         | 
| 9 | 
            -
                 | 
| 10 | 
            -
                 | 
| 11 | 
            -
                 | 
| 9 | 
            +
                MDEyYTI5MWUzYTdlYTU2MmM2NDRkMGYzMmMyNzU5YzQxYzg4ZWZkNDUyNzI2
         | 
| 10 | 
            +
                MmJiYjM2OWQ1MmZjN2NkYTQyZmM2NjA3YzE2ODI1MGIzYWVlYjdkYjI3MTk0
         | 
| 11 | 
            +
                MTU0YTkxNTFjOTA3ZjIzZTViY2QwZWJkN2Q0MzFmZjAyMzJjYTI=
         | 
| 12 12 | 
             
              data.tar.gz: !binary |-
         | 
| 13 | 
            -
                 | 
| 14 | 
            -
                 | 
| 15 | 
            -
                 | 
| 13 | 
            +
                MmZlZDA4Njg5YWJmY2M1NDMxYzc3Y2M2YjRiOWYyMWRiNmM2NDY1NDcyMmQ0
         | 
| 14 | 
            +
                YTRjZTIwYWM4Y2Q2ZjEzMDRmMzAwMjE3MjIxZDVlOWI2NTFiMDI2MmQzZjY1
         | 
| 15 | 
            +
                NjE5YmY4M2ExMWUwNjg5ZjUyYjJlYzA5ZTQ4NTU5MzEyMjljNjQ=
         | 
    
        data/CHANGES
    CHANGED
    
    
| @@ -13,7 +13,8 @@ class AcceptanceConfig | |
| 13 13 | 
             
              def configure workspace, app_name=nil
         | 
| 14 14 | 
             
                @app_name = app_name
         | 
| 15 15 |  | 
| 16 | 
            -
                 | 
| 16 | 
            +
                support_dirs = load_code_from_support workspace
         | 
| 17 | 
            +
                load_steps support_dirs
         | 
| 17 18 |  | 
| 18 19 | 
             
                acceptance_test = AcceptanceTest.instance
         | 
| 19 20 |  | 
| @@ -22,6 +23,10 @@ class AcceptanceConfig | |
| 22 23 | 
             
                acceptance_config = acceptance_config_file ? HashWithIndifferentAccess.new(YAML.load_file(acceptance_config_file)) : {}
         | 
| 23 24 | 
             
                acceptance_test.configure(acceptance_config)
         | 
| 24 25 |  | 
| 26 | 
            +
                if block_given?
         | 
| 27 | 
            +
                  yield acceptance_config
         | 
| 28 | 
            +
                end
         | 
| 29 | 
            +
             | 
| 25 30 | 
             
                RSpec.configure do |config|
         | 
| 26 31 | 
             
                  configure_turnip
         | 
| 27 32 |  | 
| @@ -128,18 +133,22 @@ class AcceptanceConfig | |
| 128 133 | 
             
                File.expand_path("tmp/#{file_name}")
         | 
| 129 134 | 
             
              end
         | 
| 130 135 |  | 
| 131 | 
            -
              def  | 
| 136 | 
            +
              def load_code_from_support basedir
         | 
| 132 137 | 
             
                support_dirs = []
         | 
| 133 138 |  | 
| 134 | 
            -
                Dir | 
| 139 | 
            +
                Dir["#{basedir}/**/*"].each do |name|
         | 
| 135 140 | 
             
                  if File.exist?(name) && File.basename(name) == 'support'
         | 
| 136 141 | 
             
                    support_dirs << name
         | 
| 137 142 | 
             
                    $LOAD_PATH << name
         | 
| 138 143 | 
             
                  end
         | 
| 139 144 | 
             
                end
         | 
| 140 145 |  | 
| 146 | 
            +
                support_dirs
         | 
| 147 | 
            +
              end
         | 
| 148 | 
            +
             | 
| 149 | 
            +
              def load_steps support_dirs
         | 
| 141 150 | 
             
                support_dirs.each do |support_dir|
         | 
| 142 | 
            -
                  Dir | 
| 151 | 
            +
                  Dir["#{support_dir}/**/steps/*_steps.rb"].each do |name|
         | 
| 143 152 | 
             
                    ext = File.extname(name)
         | 
| 144 153 |  | 
| 145 154 | 
             
                    require name[support_dir.length+1..name.length-ext.length-1]
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: acceptance_test
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.10. | 
| 4 | 
            +
              version: 1.10.10
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Alexander Shvets
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015-03- | 
| 11 | 
            +
            date: 2015-03-04 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rspec
         |