00a191f9ed
This conversion is done by Transpec 2.3.6 with the following command: transpec -f -c "bundle exec rake spec" * 69 conversions from: it { should ... } to: it { is_expected.to ... } * 48 conversions from: obj.should to: expect(obj).to * 34 conversions from: == expected to: eq(expected) * 4 conversions from: it { should_not ... } to: it { is_expected.not_to ... } * 3 conversions from: obj.should_not to: expect(obj).not_to * 2 conversions from: lambda { }.should to: expect { }.to * 2 conversions from: pending to: skip For more details: https://github.com/yujinakayama/transpec#supported-conversions
15 lines
432 B
Ruby
15 lines
432 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'mysql::server' do
|
|
on_pe_unsupported_platforms.each do |pe_version,pe_platforms|
|
|
pe_platforms.each do |pe_platform,facts|
|
|
describe "on #{pe_version} #{pe_platform}" do
|
|
let(:facts) { facts }
|
|
|
|
context 'should gracefully fail' do
|
|
it { expect { is_expected.to compile}.to raise_error(Puppet::Error, /Unsupported platform:/) }
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|