From c1ca0e2732f6c8609827f74d23ca8d43a5cfe512 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Sat, 17 Aug 2024 01:49:55 +0200 Subject: [PATCH] Move expectation out of let block Otherwise it isn't executed. Fixes: ec74a8e5f73130b0a0d5c0dd645e847a2787421f ("Add support for setting UserDir in Virtual Hosts") --- spec/defines/vhost_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/defines/vhost_spec.rb b/spec/defines/vhost_spec.rb index f448b8ca5..bb74f684a 100644 --- a/spec/defines/vhost_spec.rb +++ b/spec/defines/vhost_spec.rb @@ -2171,12 +2171,12 @@ '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 do + expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') + .with(content: %r{^\s+UserDir disabled$}) + .with(content: %r{^\s+UUserDir enabled bob$}) end end end