puppetlabs_spec_helper 0.1.0 → 0.2.0
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/CHANGELOG
    ADDED
    
    
| @@ -3,6 +3,9 @@ require 'puppetlabs_spec_helper/puppetlabs_spec_helper' | |
| 3 3 | 
             
            # Don't want puppet getting the command line arguments for rake or autotest
         | 
| 4 4 | 
             
            ARGV.clear
         | 
| 5 5 |  | 
| 6 | 
            +
            # This is needed because we're using mocha with rspec instead of Test::Unit or MiniTest
         | 
| 7 | 
            +
            ENV['MOCHA_OPTIONS']='skip_integration'
         | 
| 8 | 
            +
             | 
| 6 9 | 
             
            require 'puppet'
         | 
| 7 10 | 
             
            require 'mocha'
         | 
| 8 11 | 
             
            gem 'rspec', '>=2.0.0'
         | 
| @@ -54,6 +54,7 @@ task :spec_prep do | |
| 54 54 | 
             
                File::exists?(target) || FileUtils::ln_s(source, target)
         | 
| 55 55 | 
             
              end
         | 
| 56 56 |  | 
| 57 | 
            +
              FileUtils::mkdir_p("spec/fixtures/manifests")
         | 
| 57 58 | 
             
              FileUtils::touch("spec/fixtures/manifests/site.pp")
         | 
| 58 59 | 
             
            end
         | 
| 59 60 |  | 
| @@ -96,9 +97,7 @@ end | |
| 96 97 |  | 
| 97 98 | 
             
            desc "Check puppet manifests with puppet-lint"
         | 
| 98 99 | 
             
            task :lint do
         | 
| 99 | 
            -
               | 
| 100 | 
            -
              system("puppet-lint manifests")
         | 
| 101 | 
            -
              system("puppet-lint tests")
         | 
| 100 | 
            +
              require 'puppet-lint/tasks/puppet-lint'
         | 
| 102 101 | 
             
            end
         | 
| 103 102 |  | 
| 104 103 | 
             
            desc "Display the list of available rake tasks"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: puppetlabs_spec_helper
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 23
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 | 
            -
              -  | 
| 8 | 
            +
              - 2
         | 
| 9 9 | 
             
              - 0
         | 
| 10 | 
            -
              version: 0. | 
| 10 | 
            +
              version: 0.2.0
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - Puppet Labs
         | 
| @@ -15,7 +15,7 @@ autorequire: | |
| 15 15 | 
             
            bindir: bin
         | 
| 16 16 | 
             
            cert_chain: []
         | 
| 17 17 |  | 
| 18 | 
            -
            date: 2012-06 | 
| 18 | 
            +
            date: 2012-07-06 00:00:00 Z
         | 
| 19 19 | 
             
            dependencies: 
         | 
| 20 20 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 21 21 | 
             
              name: rake
         | 
| @@ -97,6 +97,7 @@ files: | |
| 97 97 | 
             
            - lib/puppetlabs_spec_helper/puppetlabs_spec_helper.rb
         | 
| 98 98 | 
             
            - lib/puppetlabs_spec_helper/rake_tasks.rb
         | 
| 99 99 | 
             
            - LICENSE
         | 
| 100 | 
            +
            - CHANGELOG
         | 
| 100 101 | 
             
            homepage: http://github.com/puppetlabs/puppetlabs_spec_helper
         | 
| 101 102 | 
             
            licenses: []
         | 
| 102 103 |  |