summaryrefslogtreecommitdiff
path: root/spec/unit/provider/file/content_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-11 16:12:49 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-11 16:12:49 -0800
commit002ef48ab082fc8f0767fb37c5b94471a8fd0185 (patch)
tree865e2a2758c93967f926110f3e0eebe93d303f81 /spec/unit/provider/file/content_spec.rb
parent6ca21c9ce206f1ada1c12a02afb46e3f1625a321 (diff)
parent37e02399a6e1dd281808a556f1420f8cf6e846fd (diff)
downloadchef-002ef48ab082fc8f0767fb37c5b94471a8fd0185.tar.gz
Merge pull request #4541 from chef/lcg/chefstyle-batch
fix a batch of cops
Diffstat (limited to 'spec/unit/provider/file/content_spec.rb')
-rw-r--r--spec/unit/provider/file/content_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/file/content_spec.rb b/spec/unit/provider/file/content_spec.rb
index ebef4faa09..9ebcf10dcc 100644
--- a/spec/unit/provider/file/content_spec.rb
+++ b/spec/unit/provider/file/content_spec.rb
@@ -66,13 +66,13 @@ describe Chef::Provider::File::Content do
it "returns a tempfile in the tempdir when :file_staging_uses_destdir is not set" do
Chef::Config[:file_staging_uses_destdir] = false
- expect(content.tempfile.path.start_with?(Dir::tmpdir)).to be_truthy
+ expect(content.tempfile.path.start_with?(Dir.tmpdir)).to be_truthy
expect(canonicalize_path(content.tempfile.path).start_with?(enclosing_directory)).to be_falsey
end
it "returns a tempfile in the destdir when :file_deployment_uses_destdir is set" do
Chef::Config[:file_staging_uses_destdir] = true
- expect(content.tempfile.path.start_with?(Dir::tmpdir)).to be_falsey
+ expect(content.tempfile.path.start_with?(Dir.tmpdir)).to be_falsey
expect(canonicalize_path(content.tempfile.path).start_with?(enclosing_directory)).to be_truthy
end
@@ -83,7 +83,7 @@ describe Chef::Provider::File::Content do
it "returns a tempfile in the tempdir when :file_deployment_uses_destdir is set to :auto" do
Chef::Config[:file_staging_uses_destdir] = :auto
- expect(content.tempfile.path.start_with?(Dir::tmpdir)).to be_truthy
+ expect(content.tempfile.path.start_with?(Dir.tmpdir)).to be_truthy
expect(canonicalize_path(content.tempfile.path).start_with?(enclosing_directory)).to be_falsey
end
@@ -93,7 +93,7 @@ describe Chef::Provider::File::Content do
end
it "returns a tempfile in the tempdir when :file_desployment_uses_destdir is not set" do
- expect(content.tempfile.path.start_with?(Dir::tmpdir)).to be_truthy
+ expect(content.tempfile.path.start_with?(Dir.tmpdir)).to be_truthy
expect(canonicalize_path(content.tempfile.path).start_with?(enclosing_directory)).to be_falsey
end
end