summaryrefslogtreecommitdiff
path: root/spec/unit/rest_spec.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-06-04 11:07:44 -0700
committersersut <serdar@opscode.com>2013-06-04 11:07:44 -0700
commit7cb3e135de45c354a80f1873356d8d99b81f59e1 (patch)
tree7af8fc7a9d2859003dd1f54edd1c77117fb10e9c /spec/unit/rest_spec.rb
parentc1af987bb75cf918a75cd852136edff9935e94c3 (diff)
downloadchef-7cb3e135de45c354a80f1873356d8d99b81f59e1.tar.gz
Add the binmode method to mock tempfile object.
Diffstat (limited to 'spec/unit/rest_spec.rb')
-rw-r--r--spec/unit/rest_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/rest_spec.rb b/spec/unit/rest_spec.rb
index 87f6eb0456..5ade86110c 100644
--- a/spec/unit/rest_spec.rb
+++ b/spec/unit/rest_spec.rb
@@ -497,7 +497,7 @@ describe Chef::REST do
it "closes and unlinks the tempfile when the response is a redirect" do
Tempfile.rspec_reset
- tempfile = mock("die", :path => "/tmp/ragefist", :close => true)
+ tempfile = mock("die", :path => "/tmp/ragefist", :close => true, :binmode => true)
tempfile.should_receive(:close!).at_least(2).times
Tempfile.stub!(:new).with("chef-rest").and_return(tempfile)