2011-01-20 93 views
0

我一直在試圖從2.3.5升級到Rails 2.3.10的最奇怪的時間。一旦升級,我就不能再運行任何測試。當我嘗試運行耙測試時:例如,我看到它準備好了一切,然後只要「開始」出現,就掛在那裏。很長一段時間後,它最終失敗,只是說'堆棧層太深'。這與錯誤是有幫助的。當我啓動一個雜種來測試網站時,該網站運行良好。我試過用所有相同的寶石和插件製作一個新的2.3.10應用程序,測試在該項目中運行良好。升級到Rails 2.3.10堆棧太深

所以,我現在完全卡住了。任何人都有這個麻煩?

編輯---

這裏是整個堆棧跟蹤。警告!它的長!

Calebs-iMac:missionmakr keeker1$ rake test:recent --trace 
(in /Users/keeker1/Documents/missionmakr) 
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks, vendor/plugins /delayed_job/tasks, vendor/plugins/fetcher/tasks, vendor/plugins/foreigner/tasks, vendor/plugins /paperclip/tasks, vendor/plugins/qunit_for_rails/tasks, vendor/plugins/rails-fuzzy-search/tasks, vendor/plugins/sms-fu/tasks, vendor/plugins/xss_terminate/tasks, and vendor/plugins/yaml_db/tasks are deprecated. Use lib/tasks instead. (called from /Users/keeker1/Documents/missionmakr/vendor/rails/railties/lib/tasks/rails.rb:10) 
** Invoke test:recent (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 
** Execute db:test:prepare 
** Invoke db:test:load (first_time) 
** Invoke db:test:purge (first_time) 
** Invoke environment 
** Execute db:test:purge 
** Execute db:test:load 
** Invoke db:schema:load (first_time) 
** Invoke environment 
** Execute db:schema:load 
** Execute test:recent 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/bin/ruby -I"lib:test" "/Users/keeker1/.rvm/gems/ruby- 1.8.7-p302/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/admin/announcement_test.rb" 
DEPRECATION WARNING: require "actionmailer" is deprecated and will be removed in Rails 3. Use require "action_mailer" instead. (called from /Users/keeker1/Documents/missionmakr/vendor/rails /actionmailer/lib/actionmailer.rb:2) 
Loaded suite /Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake/rake_test_loader 
Started 
EE 
Finished in 254.876779 seconds. 

1) Error: 
test_should_create_new_announcement(AnnouncementTest): 
SystemStackError: stack level too deep 
/lib/fk_fixture_patch.rb:10:in `disable_referential_integrity' 
/lib/fk_fixture_patch.rb:7:in `disable_referential_integrity' 

2) Error: 
test_should_show_error_when_message_is_blank(AnnouncementTest): 
SystemStackError: stack level too deep 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/erb.rb:719:in `inject' 
/lib/fk_fixture_patch.rb:10:in `disable_referential_integrity' 
/lib/fk_fixture_patch.rb:7:in `disable_referential_integrity' 

2 tests, 0 assertions, 0 failures, 2 errors 
rake aborted! 
Command failed with status (1): [/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302...] 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:995:in `sh' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1010:in `call' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1010:in `sh' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1094:in `sh' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1029:in `ruby' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1094:in `ruby' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake/testtask.rb:117:in `define' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1112:in `verbose' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake/testtask.rb:102:in `define' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:636:in `call' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:636:in `execute' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:631:in `each' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:631:in `execute' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain' 
/Users/keeker1/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/monitor.rb:242:in `synchronize' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:583:in `invoke' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2029:in `each' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2001:in `run' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/lib/rake.rb:1998:in `run' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/gems/rake-0.8.7/bin/rake:31 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/bin/rake:19:in `load' 
/Users/keeker1/.rvm/gems/ruby-1.8.7-p302/bin/rake:19 
Calebs-iMac:missionmakr keeker1$ 

我也嘗試刪除我的補丁lib/fk_fixture_patch.rb,它仍然沒有工作。

下面是test_should_show_error_when_message_is_blank方法的代碼。

def test_should_show_error_when_message_is_blank 
    a = Announcement.create(:message => "", :starts_at => 3.days.from_now, :ends_at => 10.days.from_now) 
    assert !a.valid? 
end 

fk_fixture_patch.rb文件是我們的服務器的東西,所以我們可以加載測試數據的燈具。我們在數據庫中使用外鍵約束。我試着評論這段代碼,但測試仍然無法運行。

+2

第1步:郵政堆棧跟蹤。可能是一個衝突的寶石或插件。 – tadman 2011-01-20 21:15:21

+0

我不是什麼問題,但我知道2.3.5,2.3.8,2.3.9和2.3.10之間的點變化都改變了很多代碼。我建議一次升級一點更改,並確保一切正常/處理每一步的任何警告。 (跳過2.3.6和2.3.7,因爲兩者都有嚴重的錯誤,並且很快升級到2.3.8)。 – 2011-01-20 21:16:04

回答

1

好吧,我終於弄清楚發生了什麼事! :)

我在使用acts_as_tree插件的模型中有一個無限循環問題。這裏的代碼在我的評論模型中的壞行:

named_scope :parents, :conditions => {:parent_id => 0} 

我想,因爲我在我的表稱爲PARENT_ID列,ActiveRecord的是越來越亂了,我有一個名爲範圍稱爲:父母。我將範圍更名爲:parents_only,一切恢復正常。這很奇怪,舊的代碼在Rails 2.3.5中工作得很好......哦,

感謝大家的幫助!

迦勒