summaryrefslogtreecommitdiff
path: root/spec/unit/provider/file
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-05-20 15:32:15 -0700
committersersut <serdar@opscode.com>2013-05-20 15:32:15 -0700
commit669bb5913611ebe4838afee4c120d0006d289646 (patch)
tree7243d34fb1d79cd3a8f5f8bfc66a422c61b3acd8 /spec/unit/provider/file
parent622b857c2dd1d06392a99ff10812b2acf721e0c5 (diff)
downloadchef-669bb5913611ebe4838afee4c120d0006d289646.tar.gz
Rename file config parameters to be file_atomic_update & file_staging_uses_destdir
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