Skip to content

Commit f10a335

Browse files
committed
fixing unit testing contrib package
Now the contrib package is not installed in Debian So test must check RedHat for exmaple Gentoo is not failing so raise check should not be done anymore.
1 parent 10b5d37 commit f10a335

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

spec/unit/classes/server/contrib_spec.rb

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
let :facts do
1111
{
1212
os: {
13-
family: 'Debian',
14-
name: 'Debian',
15-
release: { 'full' => '8.0', 'major' => '8' },
13+
family: 'RedHat',
14+
name: 'RedHat',
15+
release: { 'major' => '8' },
16+
selinux: {
17+
enabled: false,
18+
},
1619
},
1720
kernel: 'Linux',
1821
id: 'root',
@@ -41,20 +44,4 @@
4144
end
4245
end
4346

44-
describe 'on Gentoo' do
45-
let :facts do
46-
{
47-
os: {
48-
family: 'Gentoo',
49-
name: 'Gentoo',
50-
},
51-
}
52-
end
53-
54-
it 'fails to compile' do
55-
expect {
56-
is_expected.to compile
57-
}.to raise_error(%r{is not supported})
58-
end
59-
end
6047
end

0 commit comments

Comments
 (0)