dependency bug running tests in 2.0


I've run across an issue with running tests in rails 2.0.

In my environment.rb, I use config.to_prepare and this causes an error...

undefined method `cattr_accessor' for
ActionController::Dispatcher:Class (NoMethodError)

As a test, I created a blank rails 2.0 project and simply added

config.to_prepare do

to environment.rb and this causes errors running the tests as well.

As a "fix", I added

require 'activesupport'

to the top of action_controller/dispatcher.rb and the problem seems to
go away, in both my main project and the test project I created.

Now I don't think my "fix" is the proper fix, but thought somebody
might be able to tell me what a proper fix may be?

I'll open a ticket for this if somebody can confirm that this is indeed a bug.