diff --git a/spec/defines/vhost_spec.rb b/spec/defines/vhost_spec.rb index f448b8ca5..b4533daaf 100644 --- a/spec/defines/vhost_spec.rb +++ b/spec/defines/vhost_spec.rb @@ -2171,12 +2171,14 @@ 'enabled bob', ], ) + end - it { - expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') - .with(content: %r{^\s+UserDir disabled$}) - .with(content: %r{^\s+UUserDir enabled bob$}) - } + it { is_expected.to compile.with_all_deps } + it { is_expected.to contain_class('apache::mod::userdir') } + it do + expect(subject).to contain_concat__fragment('rspec.example.com-userdir') + .with(content: %r{^\s+UserDir disabled$}) + .with(content: %r{^\s+UserDir enabled bob$}) end end end