Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11163 (new defect)

Opened 2 years ago

actionpack/test/controller/integration_test.rb leaks monkeypatched methods

Reported by: RubyRedRick Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords:
Cc:

Description

In debugging the testcase for ticket #11091, I discovered that the test for integration testing is monkeypatching ActionController::Integration::Session and changing two methods process and generic_url_writer

This may affect other tests run as part of a rake task.

The attached patch fixes this, by using stubbing instead of duck punching. Note that it is also included in the latest patch for ticket #11091.

Attachments

integ_test.diff (1.5 kB) - added by RubyRedRick on 02/19/08 16:38:52.

Change History

02/19/08 16:38:52 changed by RubyRedRick

  • attachment integ_test.diff added.