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

require 'spec_helper'

describe 'mysql::server' do
  context "on an unsupported OS" do

    let(:facts) do
      {
        :osfamily => 'UNSUPPORTED',
        :operatingsystem => 'UNSUPPORTED'
      }
    end

    it 'should gracefully fail' do
      is_expected.to compile.and_raise_error(/Unsupported platform:/)
    end
  end
end

Fix to get Travis running green on unit tests
Fix to get Travis running green on unit tests

Due to https://github.com/mcanevet/rspec-puppet-facts/pull/53 some of our unti tests are failing
on Travis. This fix averts these errors for the meantime while still running the same test.
