From a2164a6467af5f5aead2de1673ed3b8c6f8338c7 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Wed, 22 Jun 2016 22:51:39 -0400 Subject: [PATCH] fix tests that fail on puppet 4.5+ --- spec/classes/nginx_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/classes/nginx_spec.rb b/spec/classes/nginx_spec.rb index 114fbeb..b5b9811 100644 --- a/spec/classes/nginx_spec.rb +++ b/spec/classes/nginx_spec.rb @@ -21,11 +21,11 @@ describe 'nginx' do it { is_expected.to compile.with_all_deps } it { is_expected.to contain_class('nginx') } it { is_expected.to contain_anchor('nginx::begin') } - it { is_expected.to contain_nginx__package.that_requires('Anchor[nginx::begin]') } - it { is_expected.to contain_nginx__config.that_requires('Class[nginx::package]') } - it { is_expected.to contain_nginx__service.that_subscribes_to('Anchor[nginx::begin]') } - it { is_expected.to contain_nginx__service.that_subscribes_to('Class[nginx::package]') } - it { is_expected.to contain_nginx__service.that_subscribes_to('Class[nginx::config]') } + it { is_expected.to contain_class('nginx::package').that_requires('Anchor[nginx::begin]') } + it { is_expected.to contain_class('nginx::config').that_requires('Class[nginx::package]') } + it { is_expected.to contain_class('nginx::service').that_subscribes_to('Anchor[nginx::begin]') } + it { is_expected.to contain_class('nginx::service').that_subscribes_to('Class[nginx::package]') } + it { is_expected.to contain_class('nginx::service').that_subscribes_to('Class[nginx::config]') } it { is_expected.to contain_anchor('nginx::end').that_requires('Class[nginx::service]') } it { is_expected.to contain_nginx__resource__upstream("upstream1") } it { is_expected.to contain_nginx__resource__vhost("test2.local") }