У меня были самые странные попытки обновить Rails 2.3.10 с 2.3.5.Как только я обновился, я больше не могу запускать какие-либо тесты.Когда я пытаюсь запустить тест rake: юниты, например, я вижу, что все готово, а затем, как только появляется сообщение «Запущено», просто висит там.После долгого времени он в конечном итоге терпит неудачу и просто говорит «слишком большой уровень стека».Это примерно так же полезно, как ошибка.Сайт работает нормально, когда я загружаю дворнягу, чтобы протестировать сайт.Я попытался создать новое приложение 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 предназначен для нашего сервера, поэтому мы можем загружать данные для тестовых данных.Мы используем ограничения внешнего ключа в нашей базе данных.Я пытался закомментировать этот код, но тесты все равно не запускались.