summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-10-05 09:37:39 +0000
committerJohn McCrae <john.mccrae@progress.com>2022-10-05 09:37:39 +0000
commit00d1e47ac2ad7a55335ace7e77d313aa23329bd8 (patch)
tree1d742a1ffe2b977de59afa6f8ccf7a8206bccb53
parentc0964e5361b0748d832de1eae7e31f597d956f6b (diff)
downloadchef-00d1e47ac2ad7a55335ace7e77d313aa23329bd8.tar.gz
changing file type to File from Tempfile in a test
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--spec/unit/file_content_management/tempfile_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/file_content_management/tempfile_spec.rb b/spec/unit/file_content_management/tempfile_spec.rb
index 82d156eb3b..6dbc3df91e 100644
--- a/spec/unit/file_content_management/tempfile_spec.rb
+++ b/spec/unit/file_content_management/tempfile_spec.rb
@@ -89,7 +89,7 @@ describe Chef::FileContentManagement::Tempfile do
it "should create a temporary file" do
subject = tempfile_object_for_path("/foo/bar/new_file")
- expect(subject.send(:tempfile_open)).to be_a(Tempfile)
+ expect(subject.send(:tempfile_open)).to be_a(File)
end
it "should preserve the extension in the tempfile path" do