summaryrefslogtreecommitdiff
path: root/spec/unit/provider/deploy_spec.rb
diff options
context:
space:
mode:
authorSeth Vargo <sethvargo@gmail.com>2013-09-24 17:38:44 -0400
committerBryan McLellan <btm@opscode.com>2013-09-26 11:13:59 -0700
commit6315871ae7deeead95d84d2487c54a03c47e318f (patch)
treea2bf980c434c657aa350c0d3fc4073652cdf43cf /spec/unit/provider/deploy_spec.rb
parent61e98b94fb387353841d5b4575816a1d716cfbc9 (diff)
downloadchef-6315871ae7deeead95d84d2487c54a03c47e318f.tar.gz
Normalize whitespace on all files
Diffstat (limited to 'spec/unit/provider/deploy_spec.rb')
-rw-r--r--spec/unit/provider/deploy_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/provider/deploy_spec.rb b/spec/unit/provider/deploy_spec.rb
index 0d837f99c3..1a9fee8831 100644
--- a/spec/unit/provider/deploy_spec.rb
+++ b/spec/unit/provider/deploy_spec.rb
@@ -163,18 +163,18 @@ describe Chef::Provider::Deploy do
@provider.stub!(:deploy).and_return{ raise "Unexpected error" }
@provider.stub!(:previous_release_path).and_return('previous_release')
@provider.should_not_receive(:rollback)
- lambda {
+ lambda {
@provider.run_action(:deploy)
}.should raise_exception(RuntimeError, "Unexpected error")
end
-
+
it "rollbacks to previous release if error happens on deploy" do
@resource.rollback_on_error true
@provider.stub!(:all_releases).and_return(['previous_release'])
@provider.stub!(:deploy).and_return{ raise "Unexpected error" }
@provider.stub!(:previous_release_path).and_return('previous_release')
@provider.should_receive(:rollback)
- lambda {
+ lambda {
@provider.run_action(:deploy)
}.should raise_exception(RuntimeError, "Unexpected error")
end
@@ -225,15 +225,15 @@ 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(NIL) -- no check needed since assertions will fail
- lambda {
+ lambda {
@provider.run_action(:rollback)
}.should raise_exception(RuntimeError, "There is no release to rollback to!")
end
-
+
it "an exception is raised when there are no releases" do
all_releases = []
Dir.stub!(:glob).with("/my/deploy/dir/releases/*").and_return(all_releases)
- lambda {
+ lambda {
@provider.run_action(:rollback)
}.should raise_exception(RuntimeError, "There is no release to rollback to!")
end
@@ -433,7 +433,7 @@ describe Chef::Provider::Deploy do
@provider.should_receive(:enforce_ownership)
@provider.link_tempfiles_to_current_release
end
-
+
end
it "does nothing for restart if restart_command is empty" do