summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorGary Larizza <gary@puppetlabs.com>2012-05-09 16:38:43 -0700
committerGary Larizza <gary@puppetlabs.com>2012-05-09 16:38:43 -0700
commit580e831fbb7ba60cc0206661a8cfe263613c2b5e (patch)
tree5ea4f7ae5ef95e72433e046aed367cf07bfb9172 /Rakefile
parent01d46be262154b76ffd794fadf0d43deeb425fa6 (diff)
Commit spec tests for the haproxy module
Previously, the haproxy module didn't provide rspec tests for the class or defined resource types. This commit adds the tests, a spec_helper file, and a rakefile so you can do `rake spec` and automatically run the tests. I've also committed a symlink in the spec/fixtures/modules/haproxy directory so the rspec-puppet tests will FIND the haproxy class/defined resource types, but I HAVE NOT committed a symlink so that it will find the concat class (which is a dependency for this module). If you choose to run the tests, you must symlink the concat module in the spec/fixtures/modules directory before the spec tests will pass.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..c5e9594
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,8 @@
+require 'rake'
+
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = '-c'
+ t.pattern = 'spec/*/*_spec.rb'
+end