Skip to content

Commit cf28b5d

Browse files
authored
Merge pull request #964 from HelenCampbell/gracefulfail
Fix to get Travis running green on unit tests
2 parents 1ac24b6 + e42568e commit cf28b5d

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

spec/classes/graceful_failures_spec.rb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
describe 'mysql::server' do
44
context "on an unsupported OS" do
5-
# fetch any sets of facts to modify them
6-
os, facts = on_supported_os.first
75

8-
let(:facts) {
9-
facts.merge({
6+
let(:facts) do
7+
{
108
:osfamily => 'UNSUPPORTED',
11-
:operatingsystem => 'UNSUPPORTED',
12-
})
13-
}
9+
:operatingsystem => 'UNSUPPORTED'
10+
}
11+
end
1412

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

0 commit comments

Comments
 (0)