aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-11 12:08:13 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-11 12:08:13 +0200
commitea4fd867017083119a41f3a35a4b8ed6ad9fdbdc (patch)
treeceaab5f2569538a85d2303be291d80f704b61e50 /spec
parent49e0718b41881715f03b139468a28a9aadff3c3e (diff)
downloadpuppet-dhcp-ea4fd867017083119a41f3a35a4b8ed6ad9fdbdc.tar.gz
puppet-dhcp-ea4fd867017083119a41f3a35a4b8ed6ad9fdbdc.tar.bz2
Prepare for rspec tests
Diffstat (limited to 'spec')
-rw-r--r--spec/.rspec6
-rw-r--r--spec/fixtures/manifests/site.pp6
-rw-r--r--spec/spec_helper.rb4
3 files changed, 16 insertions, 0 deletions
diff --git a/spec/.rspec b/spec/.rspec
new file mode 100644
index 0000000..91cd642
--- /dev/null
+++ b/spec/.rspec
@@ -0,0 +1,6 @@
+--format
+s
+--colour
+--loadby
+mtime
+--backtrace
diff --git a/spec/fixtures/manifests/site.pp b/spec/fixtures/manifests/site.pp
new file mode 100644
index 0000000..0380291
--- /dev/null
+++ b/spec/fixtures/manifests/site.pp
@@ -0,0 +1,6 @@
+# Fake $::concat_basedir fact
+$concat_basedir = '/var/lib/puppet/concat'
+
+# Default node to test defines
+node default {
+}
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..4edc964
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,4 @@
+require 'mocha'
+require 'rspec-puppet'
+require 'puppetlabs_spec_helper/module_spec_helper'
+