Sha256: 319739ca192f366dddeffc3de4903d0ba7a1a79e79387ac19d265774c2c1ca08
Contents?: true
Size: 834 Bytes
Versions: 6
Compression:
Stored size: 834 Bytes
Contents
module ActionController module Testing extend ActiveSupport::Concern include RackDelegation # TODO: Clean this up def process_with_new_base_test(request, response) @_request = request @_response = response @_response.request = request ret = process(request.parameters[:action]) if cookies = @_request.env['action_dispatch.cookies'] cookies.write(@_response) end @_response.prepare! ret end # TODO : Rewrite tests using controller.headers= to use Rack env def headers=(new_headers) @_response ||= ActionDispatch::Response.new @_response.headers.replace(new_headers) end module ClassMethods def before_filters _process_action_callbacks.find_all{|x| x.kind == :before}.map{|x| x.name} end end end end
Version data entries
6 entries across 6 versions & 1 rubygems