summaryrefslogtreecommitdiff
path: root/spec/unit/provider/file
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/file')
-rw-r--r--spec/unit/provider/file/content_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/file/content_spec.rb b/spec/unit/provider/file/content_spec.rb
index df34e5e4a8..771c889cf1 100644
--- a/spec/unit/provider/file/content_spec.rb
+++ b/spec/unit/provider/file/content_spec.rb
@@ -69,14 +69,14 @@ describe Chef::Provider::File::Content do
IO.read(content.tempfile.path).should == new_resource.content
end
- it "returns a tempfile in the tempdir when :file_deployment_uses_destdir is not set" do
- Chef::Config[:file_deployment_uses_destdir] = false
+ it "returns a tempfile in the tempdir when :file_staging_uses_destdir is not set" do
+ Chef::Config[:file_staging_uses_destdir] = false
content.tempfile.path.should match /^#{Dir::tmpdir}/
content.tempfile.path.should_not match /^#{enclosing_directory}/
end
it "returns a tempfile in the destdir when :file_desployment_uses_destdir is not set" do
- Chef::Config[:file_deployment_uses_destdir] = true
+ Chef::Config[:file_staging_uses_destdir] = true
content.tempfile.path.should_not match /^#{Dir::tmpdir}/
content.tempfile.path.should match /^#{enclosing_directory}/
end