Skip to content
Browse files

Yet another attempt to sort out dreaded "IOError - not opened for rea…

…ding:"
  • Loading branch information...
1 parent 33aa1ce commit 6accb98651982707c3375a7ab77cc29f1325f0d4 @artemave artemave committed Oct 20, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/rest-assured/routes/response.rb
  2. +1 −1 lib/rest-assured/version.rb
  3. +1 −1 spec/functional/response_spec.rb
View
2 lib/rest-assured/routes/response.rb
@@ -5,7 +5,7 @@ def self.perform(app)
if d = Double.where(:fullpath => request.fullpath, :active => true, :verb => request.request_method).first
request.body.rewind
body = request.body.read #without temp variable ':body = > body' is always nil. mistery
- env = request.env.except('rack.input', 'rack.errors')
+ env = request.env.except('rack.input', 'rack.errors', 'rack.logger')
d.requests.create!(:rack_env => env.to_json, :body => body, :params => request.params.to_json)
View
2 lib/rest-assured/version.rb
@@ -1,3 +1,3 @@
module RestAssured
- VERSION = '0.2.0.rc3'
+ VERSION = '0.2.0.rc4'
end
View
2 spec/functional/response_spec.rb
@@ -59,7 +59,7 @@
requests = double.as_null_object
Double.stub_chain('where.first').and_return(double(:requests => requests).as_null_object)
- env.should_receive(:except).with('rack.input', 'rack.errors')
+ env.should_receive(:except).with('rack.input', 'rack.errors', 'rack.logger')
Response.perform(rest_assured_app)
end

0 comments on commit 6accb98

Please sign in to comment.
Something went wrong with that request. Please try again.