puppetlabs_spec_helper 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG ADDED
@@ -0,0 +1,7 @@
1
+ 2012-07-05 Puppet Labs <info@puppetlabs.com> - 0.2.0
2
+ * Fix integration with mocha-0.12.0
3
+ * Fix coverage rake task
4
+ * Fix an issue creating the fixtures directory
5
+
6
+ 2012-06-08 Puppet Labs <info@puppetlabs.com> - 0.1.0
7
+ * Initial release
@@ -1,5 +1,5 @@
1
- require 'puppetlabs_spec_helper/puppet_spec_helper'
2
1
  require 'rspec-puppet'
2
+ require 'puppetlabs_spec_helper/puppet_spec_helper'
3
3
 
4
4
  def param_value(subject, type, title, param)
5
5
  subject.resource(type, title).send(:parameters)[param.to_sym]
@@ -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
- # This requires pull request: https://github.com/rodjek/puppet-lint/pull/81
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: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.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-08 00:00:00 Z
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