]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/keystone/spec/shared_examples.rb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / keystone / spec / shared_examples.rb
diff --git a/3rdparty/modules/keystone/spec/shared_examples.rb b/3rdparty/modules/keystone/spec/shared_examples.rb
new file mode 100644 (file)
index 0000000..d92156a
--- /dev/null
@@ -0,0 +1,5 @@
+shared_examples_for "a Puppet::Error" do |description|
+  it "with message matching #{description.inspect}" do
+    expect { should have_class_count(1) }.to raise_error(Puppet::Error, description)
+  end
+end