Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to', - The old ':should' syntax in rspec 3.x is deprecated in favor of ':expect' syntax, - Expectations on attribute of subject with 'its'. Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com> Change-Id: Id2892bb493cdd8357b74bf81c8606ba00c74b93c Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
parent
bbcccfa801
commit
86851f4a2f
@ -175,11 +175,14 @@ describe 'basic swift_config resource' do
|
||||
|
||||
$swift_files.each do |swift_conf_file|
|
||||
describe file(swift_conf_file) do
|
||||
it { should exist }
|
||||
it { should contain('thisshouldexist=foo') }
|
||||
it { should contain('thisshouldexist2=<SERVICE DEFAULT>') }
|
||||
it { is_expected.to exist }
|
||||
it { is_expected.to contain('thisshouldexist=foo') }
|
||||
it { is_expected.to contain('thisshouldexist2=<SERVICE DEFAULT>') }
|
||||
|
||||
its(:content) { should_not match /thisshouldnotexist/ }
|
||||
describe '#content' do
|
||||
subject { super().content }
|
||||
it { is_expected.to_not match /thisshouldnotexist/ }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user