spec/solaris11/file_spec.rb in serverspec-0.7.4 vs spec/solaris11/file_spec.rb in serverspec-0.7.5
- old
+ new
@@ -371,19 +371,19 @@
it { should_not be_mounted.only_with( :type => 'ext4' ) }
end
describe file('/etc/services') do
it { should match_md5checksum '35435ea447c19f0ea5ef971837ab9ced' }
- its(:command) { should eq "md5sum /etc/services | grep -iw -- ^35435ea447c19f0ea5ef971837ab9ced" }
+ its(:command) { should eq "md5sum /etc/services | grep -iw -- \\^35435ea447c19f0ea5ef971837ab9ced" }
end
describe file('invalid-file') do
it { should_not match_md5checksum 'INVALIDMD5CHECKSUM' }
end
describe file('/etc/services') do
it { should match_sha256checksum '0c3feee1353a8459f8c7d84885e6bc602ef853751ffdbce3e3b6dfa1d345fc7a' }
- its(:command) { should eq "sha256sum /etc/services | grep -iw -- ^0c3feee1353a8459f8c7d84885e6bc602ef853751ffdbce3e3b6dfa1d345fc7a" }
+ its(:command) { should eq "sha256sum /etc/services | grep -iw -- \\^0c3feee1353a8459f8c7d84885e6bc602ef853751ffdbce3e3b6dfa1d345fc7a" }
end
describe file('invalid-file') do
it { should_not match_sha256checksum 'INVALIDSHA256CHECKSUM' }
end