summaryrefslogtreecommitdiff
path: root/spec/unit/compliance/profile_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/compliance/profile_spec.rb')
-rw-r--r--spec/unit/compliance/profile_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/compliance/profile_spec.rb b/spec/unit/compliance/profile_spec.rb
index 8487b26691..c8ed5c7b40 100644
--- a/spec/unit/compliance/profile_spec.rb
+++ b/spec/unit/compliance/profile_spec.rb
@@ -106,7 +106,7 @@ version: 2.6.4#{" "}
supports:#{" "}
- os-family: unix
EOH
- tempfile = Tempfile.new("chef-compliance-test")
+ tempfile = Tempfile.create("chef-compliance-test")
tempfile.write string
tempfile.close
newprofile = Chef::Compliance::Profile.from_file(events, tempfile.path, cookbook_name)