diff options
author | adamedx <adamed@opscode.com> | 2013-10-17 10:10:31 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-10-17 11:56:08 -0700 |
commit | 25f40030304b178f7e5518bf6da290245bc05c10 (patch) | |
tree | 1dbe3f90e0c8c920086acc4c29131e37f1ecb209 /spec/unit/provider/remote_file | |
parent | 9bb1c68605f1bf2db5c67f9b20ec7e4990a4ee2f (diff) | |
download | chef-25f40030304b178f7e5518bf6da290245bc05c10.tar.gz |
Handle nil tempfile, ftp, http cases
Diffstat (limited to 'spec/unit/provider/remote_file')
-rw-r--r-- | spec/unit/provider/remote_file/http_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/remote_file/http_spec.rb b/spec/unit/provider/remote_file/http_spec.rb index 9fbe76f68e..cb7271900d 100644 --- a/spec/unit/provider/remote_file/http_spec.rb +++ b/spec/unit/provider/remote_file/http_spec.rb @@ -159,7 +159,7 @@ describe Chef::Provider::RemoteFile::HTTP do let(:tempfile_path) { "/tmp/chef-mock-tempfile-abc123" } - let(:tempfile) { mock(Tempfile, :path => tempfile_path) } + let(:tempfile) { mock(Tempfile, :path => tempfile_path, :close => nil) } let(:last_response) { {} } |