summaryrefslogtreecommitdiff
path: root/spec/unit/provider/deploy_spec.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2014-01-02 16:00:49 -0800
committerdanielsdeleo <dan@opscode.com>2014-01-02 17:18:27 -0800
commit1e3a492bbb4e523073d08dda9d707479d0e64f68 (patch)
tree82d06030a2b3c06c644f5f4df9b454a9833cb46a /spec/unit/provider/deploy_spec.rb
parent016a96c2495ff45fa270ce1fdd7ffff74cc6a781 (diff)
downloadchef-1e3a492bbb4e523073d08dda9d707479d0e64f68.tar.gz
Add message expectations for file permission enforcement
Diffstat (limited to 'spec/unit/provider/deploy_spec.rb')
-rw-r--r--spec/unit/provider/deploy_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/provider/deploy_spec.rb b/spec/unit/provider/deploy_spec.rb
index 1a9fee8831..d9b1619d72 100644
--- a/spec/unit/provider/deploy_spec.rb
+++ b/spec/unit/provider/deploy_spec.rb
@@ -69,6 +69,7 @@ describe Chef::Provider::Deploy do
it "creates deploy_to dir" do
::Dir.should_receive(:chdir).with(@expected_release_dir).exactly(4).times
+ @provider.should_receive(:enforce_ownership).twice
@provider.stub(:update_cached_repo)
@provider.deploy
end
@@ -80,6 +81,7 @@ describe Chef::Provider::Deploy do
::Dir.should_receive(:chdir).with(@expected_release_dir).exactly(4).times
FileUtils.should_not_receive(:mkdir_p).with(@resource.deploy_to)
FileUtils.should_not_receive(:mkdir_p).with(@resource.shared_path)
+ @provider.should_receive(:enforce_ownership).twice
@provider.stub(:copy_cached_repo)
@provider.stub(:update_cached_repo)
@provider.stub(:symlink)
@@ -94,6 +96,7 @@ describe Chef::Provider::Deploy do
@provider.stub(:copy_cached_repo)
@provider.stub(:update_cached_repo)
@provider.stub(:install_gems)
+ @provider.should_receive(:enforce_ownership).ordered
@provider.stub(:enforce_ownership)
@provider.stub(:symlink)
@provider.stub(:migrate)