Skip to content

Commit

Permalink
Move expectation out of let block
Browse files Browse the repository at this point in the history
Otherwise it isn't executed.

Fixes: ec74a8e ("Add support for setting UserDir in Virtual Hosts")
  • Loading branch information
ekohl committed Aug 16, 2024
1 parent 6d218cf commit c1ca0e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/defines/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on ubuntu-22.04-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on centos-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on scientific-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on redhat-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on oraclelinux-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on redhat-8-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on redhat-9-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on sles-15-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on sles-12-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

apache::vhost os-independent items on debian-10-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on almalinux-8-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on centos-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on centos-8-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on debian-10-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on debian-11-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on oraclelinux-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on redhat-7-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on redhat-8-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on redhat-9-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]

Check failure on line 2176 in spec/defines/vhost_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

apache::vhost os-independent items on rocky-8-x86_64 userdir is expected to contain Concat::Fragment[rspec.example.com-apache-userdir] with content =~ /^\s+UserDir disabled$/ and content =~ /^\s+UUserDir enabled bob$/ Failure/Error: expect(subject).to contain_concat__fragment('rspec.example.com-apache-userdir') .with(content: %r{^\s+UserDir disabled$}) .with(content: %r{^\s+UUserDir enabled bob$}) expected that the catalogue would contain Concat::Fragment[rspec.example.com-apache-userdir]
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
Expand Down

0 comments on commit c1ca0e2

Please sign in to comment.