Commit 014a69af authored by Adam Jacob's avatar Adam Jacob
Browse files

I missed a test

parent 6d4dc536
......@@ -41,6 +41,7 @@ describe Chef::Provider::RemoteFile, "do_remote_file" do
@rest = mock(Chef::REST, { })
@tempfile = mock(Tempfile, { :path => "/tmp/foo", })
@tempfile.stub!(:open).and_return(@tempfile)
@tempfile.stub!(:closed?).and_return(false)
@tempfile.stub!(:close)
@rest.stub!(:get_rest).and_return(@tempfile)
@resource = Chef::Resource::RemoteFile.new("seattle")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment