summaryrefslogtreecommitdiff
path: root/spec/unit/digester_spec.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-11-04 08:17:39 -0800
committertyler-ball <tyleraball@gmail.com>2014-11-04 08:17:39 -0800
commitd6687d195091ab67a00ac5d61ededbb7958f32ad (patch)
tree2765b1c52a021033e44c6ba38287d7fb77704914 /spec/unit/digester_spec.rb
parente5c35f74b8451139605fc5c986eb51405d53d4c2 (diff)
parent4fa0ea6f9b942d407b83712ec53e19447ddfa39b (diff)
downloadchef-tball/audit-rspec-3.tar.gz
Merging mcquin/rspec-3 to this branchtball/audit-rspec-3
Diffstat (limited to 'spec/unit/digester_spec.rb')
-rw-r--r--spec/unit/digester_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/digester_spec.rb b/spec/unit/digester_spec.rb
index fdf20aca7c..51bcfbdde5 100644
--- a/spec/unit/digester_spec.rb
+++ b/spec/unit/digester_spec.rb
@@ -28,20 +28,20 @@ describe Chef::Digester do
describe "when computing checksums of cookbook files and templates" do
it "proxies the class method checksum_for_file to the instance" do
- @cache.should_receive(:checksum_for_file).with("a_file_or_a_fail")
+ expect(@cache).to receive(:checksum_for_file).with("a_file_or_a_fail")
Chef::Digester.checksum_for_file("a_file_or_a_fail")
end
it "computes a checksum of a file" do
fixture_file = CHEF_SPEC_DATA + "/checksum/random.txt"
expected = "09ee9c8cc70501763563bcf9c218d71b2fbf4186bf8e1e0da07f0f42c80a3394"
- @cache.checksum_for_file(fixture_file).should == expected
+ expect(@cache.checksum_for_file(fixture_file)).to eq(expected)
end
it "generates a checksum from a non-file IO object" do
io = StringIO.new("riseofthemachines\nriseofthechefs\n")
expected_md5 = '0e157ac1e2dd73191b76067fb6b4bceb'
- @cache.generate_md5_checksum(io).should == expected_md5
+ expect(@cache.generate_md5_checksum(io)).to eq(expected_md5)
end
end