diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-06 16:05:54 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-11 12:20:56 -0800 |
commit | 1eb4ae02a49ba7dfee8e65fcd26777c9098329a7 (patch) | |
tree | 5b00458c1000d280f3aa3e9aecac4083817ebadd /spec/support | |
parent | fdb52d2ea01b232efd9011e4315277c03623115d (diff) | |
download | chef-1eb4ae02a49ba7dfee8e65fcd26777c9098329a7.tar.gz |
OC-10380: add polymorphism
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared/unit/provider/file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |