From 580e831fbb7ba60cc0206661a8cfe263613c2b5e Mon Sep 17 00:00:00 2001 From: Gary Larizza Date: Wed, 9 May 2012 16:38:43 -0700 Subject: 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. --- Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Rakefile (limited to 'Rakefile') 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 -- cgit v1.2.3