From 1eb4ae02a49ba7dfee8e65fcd26777c9098329a7 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 6 Nov 2013 16:05:54 -0800 Subject: OC-10380: add polymorphism --- spec/support/shared/unit/provider/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support') diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb index 7efea1dd9e..8753937fc3 100644 --- a/spec/support/shared/unit/provider/file.rb +++ b/spec/support/shared/unit/provider/file.rb @@ -404,7 +404,7 @@ shared_examples_for Chef::Provider::File do :for_reporting => diff_for_reporting ) diff.stub!(:diff).with(resource_path, tempfile_path).and_return(true) provider.should_receive(:diff).at_least(:once).and_return(diff) - provider.should_receive(:should_do_checksum?).at_least(:once).and_return(true) + provider.should_receive(:managing_content?).at_least(:once).and_return(true) provider.should_receive(:checksum).with(tempfile_path).and_return(tempfile_sha256) provider.should_receive(:checksum).with(resource_path).and_return(tempfile_sha256) provider.deployment_strategy.should_receive(:deploy).with(tempfile_path, normalized_path) -- cgit v1.2.1