Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update spec and rakefile for puppetlabs_spec_helper

  • Loading branch information...
commit 8c4c6c2528a7297bd20a4e2e2b4c0d19106fc466 1 parent fb31ed3
@hunner hunner authored
View
6 .fixtures.yml
@@ -0,0 +1,6 @@
+fixtures:
+ repositories:
+ stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
+ firewall: "git://github.com/puppetlabs/puppetlabs-firewall.git"
+ symlinks:
+ apache: "#{source_dir}"
View
5 .gemfile
@@ -0,0 +1,5 @@
+source :rubygems
+
+puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7']
+gem 'puppet', puppetversion
+gem 'puppetlabs_spec_helper', '>= 0.1.0'
View
15 Rakefile
@@ -1,14 +1 @@
-require 'rake'
-
-task :default => [:spec]
-
-desc "Run all module spec tests (Requires rspec-puppet gem)"
-task :spec do
- system("rspec spec")
-end
-
-desc "Build package"
-task :build do
- system("puppet-module build")
-end
-
+require 'puppetlabs_spec_helper/rake_tasks'
View
6 spec/spec.opts
@@ -0,0 +1,6 @@
+--format
+s
+--colour
+--loadby
+mtime
+--backtrace
View
12 spec/spec_helper.rb
@@ -1,11 +1 @@
-require 'puppet'
-require 'rubygems'
-require 'rspec-puppet'
-
-def param_value(subject, type, title, param)
- subject.resource(type, title).send(:parameters)[param.to_sym]
-end
-
-RSpec.configure do |c|
- c.module_path = File.join(File.dirname(__FILE__), '../../')
-end
+require 'puppetlabs_spec_helper/module_spec_helper'
Please sign in to comment.
Something went wrong with that request. Please try again.