We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01be2c1 commit eea6c8cCopy full SHA for eea6c8c
spec/classes/repo_yum_spec.rb
@@ -30,9 +30,7 @@
30
end
31
32
it 'does not install' do
33
- expect do
34
- is_expected.to create_file('/etc/yum.repos.d/glusterfs-x86_64.repo')
35
- end.to raise_error(Puppet::Error, %r{doesn't make sense!})
+ is_expected.to compile.and_raise_error(%r{doesn't make sense!})
36
37
38
context 'unsupported architecture' do
@@ -43,9 +41,7 @@
43
41
44
42
45
46
47
48
- end.to raise_error(Puppet::Error, %r{not yet supported})
+ is_expected.to compile.and_raise_error(%r{not yet supported})
49
50
51
context 'latest Gluster with priority' do
0 commit comments