2012-02-15 59 views
2

我正在努力將應用程序升級到Rails 3(Ruby 1.8.7),而我目前的障礙是在運行'耙測試--trace」我得到如下:將應用程序升級到Ruby 1.8.7,Rails 3併爲SiteSweeper獲取未定義的方法`config_accessor':類

** Invoke test (first_time) 
** Execute test 
** Invoke test:units (first_time) 
** Invoke test:prepare (first_time) 
** Invoke db:test:prepare (first_time) 
** Invoke db:abort_if_pending_migrations (first_time) 
** Invoke environment (first_time) 
** Execute environment 
** Execute db:abort_if_pending_migrations 
** Invoke test:functionals (first_time) 
** Invoke test:prepare 
** Execute test:functionals 
DEPRECATION WARNING: "Rails.root/test/mocks/test" won't be added automatically to load paths anymore in future releases. (called from <APP PATH>/config/application.rb:17) 
C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.0.11/lib/action_controller/caching/pages.rb:47: undefined method `config_accessor' for SiteSweeper:Class (NoMethodError) 
     from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.11/lib/active_support/concern.rb:52:in `class_eval' 
     from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.11/lib/active_support/concern.rb:52:in `append_features' 
     from <APP PATH>/app/sweepers/site_sweeper.rb:4:in `include' 
     from <APP PATH>/app/sweepers/site_sweeper.rb:4 
     from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.11/lib/active_support/dependencies.rb:239:in `require' 
     from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.0.11/lib/active_support/dependencies.rb:239:in `require' 
... 

這裏的錯誤指向代碼,實際上是鋼軌內側3.0.11寶石(action_controller /緩存/ pages.rb:47),我不能弄清楚爲什麼會導致問題,或者爲什麼我找不到有其他問題的人。我還在尋找ActionController :: Caching的文檔來查看'config_accessor'是否會消失..?

任何援助非常感謝。

回答

1

我不確定這是否是一個完整答案,但對於我升級'測試/ mocks'目錄的應用程序沒有任何內容。刪除目錄將刪除棄用消息。

相關問題