newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / spec / spec_helper_local.rb
diff --git a/3rdparty/modules/postgresql/spec/spec_helper_local.rb b/3rdparty/modules/postgresql/spec/spec_helper_local.rb
new file mode 100644 (file)
index 0000000..e25a51b
--- /dev/null
@@ -0,0 +1,14 @@
+RSpec.configure do |c|
+  c.mock_with :rspec
+
+  c.include PuppetlabsSpec::Files
+  c.after :each do
+    PuppetlabsSpec::Files.cleanup
+  end
+end
+
+# Convenience helper for returning parameters for a type from the
+# catalogue.
+def param(type, title, param)
+  param_value(catalogue, type, title, param)
+end