module-puppetlabs-mysql/spec/classes/graceful_failures_spec.rb
David Schmitt 6527a3aa22 (MAINT) switch to rspec-puppet-facts
Switching out the puppet version, as puppet_facts does, does not work,
as this will confuse code that wants to use version-dependent features.

Instead this uses rspec-puppet-facts, which doesn't touch the puppet
version.
2015-10-13 11:29:42 +01:00

19 lines
427 B
Ruby

require 'spec_helper'
describe 'mysql::server' do
context "on an unsupported OS" do
# fetch any sets of facts to modify them
os, facts = on_supported_os.first
let(:facts) {
facts.merge({
:osfamily => 'UNSUPPORTED',
:operatingsystem => 'UNSUPPORTED',
})
}
it 'should gracefully fail' do
is_expected.to compile.and_raise_error(/Unsupported platform:/)
end
end
end