summaryrefslogtreecommitdiff
path: root/spec/acceptance/unsupported_spec.rb
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2014-03-12 18:22:23 +0000
committerAshley Penney <ashley.penney@puppetlabs.com>2014-03-12 18:22:23 +0000
commit9a3107fed17a1cfe9d829517ed91c345c6fec774 (patch)
treeb73c6f991adf2e343624697900377b79dcd05bf5 /spec/acceptance/unsupported_spec.rb
parente467d8f0847bb85fc8b0789d2eb44dcca862c5d7 (diff)
Add beaker framework.
This prepares the module for beaker acceptance tests.
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