summaryrefslogtreecommitdiff
path: root/spec/unit/file_content_management/deploy/mv_windows_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/file_content_management/deploy/mv_windows_spec.rb')
-rw-r--r--spec/unit/file_content_management/deploy/mv_windows_spec.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/unit/file_content_management/deploy/mv_windows_spec.rb b/spec/unit/file_content_management/deploy/mv_windows_spec.rb
index 8f54226a9d..30a62c4da9 100644
--- a/spec/unit/file_content_management/deploy/mv_windows_spec.rb
+++ b/spec/unit/file_content_management/deploy/mv_windows_spec.rb
@@ -72,7 +72,7 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
end
it "errors out with a WindowsNotAdmin error" do
- expect { content_deployer.deploy(staging_file_path, target_file_path)}.to raise_error(Chef::Exceptions::WindowsNotAdmin)
+ expect { content_deployer.deploy(staging_file_path, target_file_path) }.to raise_error(Chef::Exceptions::WindowsNotAdmin)
end
end
@@ -92,7 +92,6 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
double "security descriptor for target file"
end
-
before do
allow(target_file_security_object).to receive(:security_descriptor).and_return(target_file_security_descriptor)
@@ -130,7 +129,6 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
expect(updated_target_security_object).to receive(:set_sacl).with(nil, false)
end
-
it "fixes up permissions and moves the file into place" do
content_deployer.deploy(staging_file_path, target_file_path)
end
@@ -154,7 +152,6 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
with([]).
and_return(empty_dacl)
-
allow(target_file_security_descriptor).to receive(:sacl_present?).and_return(true)
allow(target_file_security_descriptor).to receive(:sacl_inherits?).and_return(false)
@@ -164,12 +161,10 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
with([]).
and_return(empty_sacl)
-
expect(updated_target_security_object).to receive(:set_dacl).with(empty_dacl, false)
expect(updated_target_security_object).to receive(:set_sacl).with(empty_sacl, false)
end
-
it "fixes up permissions and moves the file into place" do
content_deployer.deploy(staging_file_path, target_file_path)
end
@@ -235,5 +230,3 @@ describe Chef::FileContentManagement::Deploy::MvWindows do
end
end
-
-