diff options
author | John McCrae <john.mccrae@progress.com> | 2022-10-05 09:37:39 +0000 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-10-05 09:37:39 +0000 |
commit | 00d1e47ac2ad7a55335ace7e77d313aa23329bd8 (patch) | |
tree | 1d742a1ffe2b977de59afa6f8ccf7a8206bccb53 | |
parent | c0964e5361b0748d832de1eae7e31f597d956f6b (diff) | |
download | chef-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.rb | 2 |
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 |