stop constructing a request object in this setter
Since we just go through the normal test harness that sets up a request for us, we don't need to do this anymore.
This commit is contained in:
parent
4f7dbf50d9
commit
f679397634
@ -4,7 +4,6 @@ module Testing
|
||||
|
||||
# TODO : Rewrite tests using controller.headers= to use Rack env
|
||||
def headers=(new_headers)
|
||||
@_response ||= ActionDispatch::Response.new
|
||||
@_response.headers.replace(new_headers)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user