summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorBranan Purvine-Riley <branan@puppetlabs.com>2012-05-29 13:55:26 -0700
committerBranan Purvine-Riley <branan@puppetlabs.com>2012-05-29 15:53:46 -0700
commit2247df4f6e828d6791a46cb12d4e2df2e0b98dce (patch)
tree6c402ed6bbe5cfe916db54a24ce4495719598035 /Rakefile
parentcf7ac0286043d01aa807743d75574d450536582d (diff)
Update for new gem version of puppetlabs_spec_helper
This updates the Rakefile and spec_helper to use the common versions available in the puppetlabs_spec_helper rubygem branch. This mostly just removes a bunch of duplicated code, but it also gives us more flexibility in how the module is tested in the future.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile18
1 files changed, 2 insertions, 16 deletions
diff --git a/Rakefile b/Rakefile
index 01b2a31..277c8e2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,16 +1,2 @@
-require 'rake'
-require 'rspec/core/rake_task'
-
-task :default => [:test]
-
-desc 'Run RSpec'
-RSpec::Core::RakeTask.new(:test) do |t|
- t.pattern = 'spec/{unit}/**/*.rb'
- t.rspec_opts = ['--color']
-end
-
-desc 'Generate code coverage'
-RSpec::Core::RakeTask.new(:coverage) do |t|
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
-end
+require 'rubygems'
+require 'puppet_module_spec_helper/rake_tasks'