I was wondering if anybody has taken a look at this yet? (Using Rails 2.0.1 and Ruby 1.8.6)
Here's a simple use case for reproducing... 1) create a test app... rails test_app 2) edit config/environment.rb and add... config.to_prepare do end 3) run script/server <- no errors 4) run script/console <- dependency error If any core people know how to fix this dependency error, I can create the ticket for it, but I'm not sure what the best fix is for it myself. Thanks, Andrew On Dec 13, 2007 2:14 PM, Andrew Kaspick <[EMAIL PROTECTED]> wrote: > Hello, > > 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... > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/dispatcher.rb:88: > 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 > end > > 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. > > Thanks, > Andrew > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
