Skip to content

Commit

Permalink
Get controller/test_test.rb to pass on new base
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Lerche committed May 26, 2009
1 parent 7dd0943 commit a3ca563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions actionpack/Rakefile
Expand Up @@ -65,15 +65,14 @@ Rake::TestTask.new(:test_new_base_on_old_tests) do |t|
# ==== Not ported
# * filters
# * integration
# * test
t.test_files = %w(
action_pack_assertions addresses_render assert_select
base benchmark caching capture content_type cookie dispatcher
filter_params flash helper http_basic_authentication
http_digest_authentication layout logging mime_responds
record_identifier redirect render render_js render_json
render_other render_xml request_forgery_protection rescue
resources routing selector send_file url_rewriter
resources routing selector send_file test url_rewriter
verification view_paths webservice
).map { |name| "test/controller/#{name}_test.rb" }
t.verbose = true
Expand Down
3 changes: 2 additions & 1 deletion actionpack/lib/action_controller/testing/process2.rb
Expand Up @@ -51,9 +51,10 @@ def process(action, parameters = nil, session = nil, flash = nil, http_method =

@request.session = ActionController::TestSession.new(session) unless session.nil?
@request.session["flash"] = ActionController::Flash::FlashHash.new.update(flash) if flash
build_request_uri(action, parameters)

@controller.request = @request
@controller.params.merge!(parameters)
build_request_uri(action, parameters)
# Base.class_eval { include ProcessWithTest } unless Base < ProcessWithTest
@controller.process_with_new_base_test(@request, @response)
@response
Expand Down

0 comments on commit a3ca563

Please sign in to comment.