try again, with puppetforge modules, correctly included now
[mirror/dsa-puppet.git] / 3rdparty / modules / apache / spec / acceptance / unsupported_spec.rb
diff --git a/3rdparty/modules/apache/spec/acceptance/unsupported_spec.rb b/3rdparty/modules/apache/spec/acceptance/unsupported_spec.rb
new file mode 100644 (file)
index 0000000..085845d
--- /dev/null
@@ -0,0 +1,13 @@
+require 'spec_helper_acceptance'
+
+describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
+  it 'should fail' do
+    pp = <<-EOS
+      class { 'apache': }
+      apache::vhost { 'test.lan':
+        docroot => '/var/www',
+      }
+    EOS
+    expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported/i)
+  end
+end