diff --git a/spec/acceptance/designate_config_spec.rb b/spec/acceptance/designate_config_spec.rb index f9e6c626..bd3c1f36 100644 --- a/spec/acceptance/designate_config_spec.rb +++ b/spec/acceptance/designate_config_spec.rb @@ -43,11 +43,14 @@ describe 'basic designate_config resource' do end describe file('/etc/designate/designate.conf') do - it { should exist } - it { should contain('thisshouldexist=foo') } - it { should contain('thisshouldexist2=') } + it { is_expected.to exist } + it { is_expected.to contain('thisshouldexist=foo') } + it { is_expected.to contain('thisshouldexist2=') } - its(:content) { should_not match /thisshouldnotexist/ } + describe '#content' do + subject { super().content } + it { is_expected.to_not match /thisshouldnotexist/ } + end end