summaryrefslogtreecommitdiff
path: root/spec/acceptance/unsupported_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/unsupported_spec.rb')
-rw-r--r--spec/acceptance/unsupported_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/acceptance/unsupported_spec.rb b/spec/acceptance/unsupported_spec.rb
new file mode 100644
index 0000000..449f35a
--- /dev/null
+++ b/spec/acceptance/unsupported_spec.rb
@@ -0,0 +1,10 @@
+require 'spec_helper_acceptance'
+
+describe 'unsupported distributions and OSes', :if => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
+ it 'should fail' do
+ pp = <<-EOS
+ class { 'mysql::server': }
+ EOS
+ expect(apply_manifest(pp, :expect_failures => true).stderr).to match(/unsupported osfamily/i)
+ end
+end