summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorsawanoboly <sawanoboriyu@higanworks.com>2014-07-22 13:49:32 +0900
committersawanoboly <sawanoboriyu@higanworks.com>2014-07-22 13:49:32 +0900
commite2d090be774b1c2e18c4864884588e29ec2bc3bb (patch)
treee9629c7048dab94be50d342e1aa1d844cef2ed31 /spec
parentdd742991862f6b1c9b8d193549f6b87c5c92cfa6 (diff)
downloadchef-e2d090be774b1c2e18c4864884588e29ec2bc3bb.tar.gz
shared_path can be used to get the path to the shared_path
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/provider/deploy_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/provider/deploy_spec.rb b/spec/unit/provider/deploy_spec.rb
index e6e4566011..c6df0d4fdf 100644
--- a/spec/unit/provider/deploy_spec.rb
+++ b/spec/unit/provider/deploy_spec.rb
@@ -192,6 +192,7 @@ describe Chef::Provider::Deploy do
FileUtils.should_receive(:rm_rf).with("/my/deploy/dir/releases/5")
@provider.run_action(:rollback)
@provider.release_path.should eql("/my/deploy/dir/releases/3")
+ @provider.shared_path.should eql("/my/deploy/dir/shared")
end
it "sets the release path to the specified release, symlinks, and rm's any newer releases on rollback" do
@@ -203,6 +204,7 @@ describe Chef::Provider::Deploy do
FileUtils.should_receive(:rm_rf).with("/my/deploy/dir/releases/20040815162342")
@provider.run_action(:rollback)
@provider.release_path.should eql("/my/deploy/dir/releases/20040700000000")
+ @provider.shared_path.should eql("/my/deploy/dir/shared")
end
it "sets the release path to the penultimate release, symlinks, and rm's the last release on rollback" do
@@ -216,6 +218,7 @@ describe Chef::Provider::Deploy do
FileUtils.should_receive(:rm_rf).with("/my/deploy/dir/releases/20040815162342")
@provider.run_action(:rollback)
@provider.release_path.should eql("/my/deploy/dir/releases/20040700000000")
+ @provider.shared_path.should eql("/my/deploy/dir/shared")
end
describe "if there are no releases to fallback to" do
@@ -255,6 +258,7 @@ describe Chef::Provider::Deploy do
FileUtils.should_receive(:rm_rf).with("/my/deploy/dir/releases/20040815162342")
@provider.run_action(:rollback)
@provider.release_path.should eql("/my/deploy/dir/releases/20040700000000")
+ @provider.shared_path.should eql("/my/deploy/dir/shared")
end
end