Я возобновил тестирование своего приложения для рельсов после его приостановки. Запуск тестов в моем приложении rails теперь возвращает SystemStackError. Даже простой тест, какОшибка проверки системы ошибок Rails
Защиту test_per_page
assert_instance_of Fixnum, Activity.per_page
конец
дает мне
C: /Ruby/lib/ruby/gems/1.8/ gems/activesupport-2.3.2/lib/active_support/core_ext/m odule/introspection.rb: 74: in `local_constants ': уровень слишком глубокий (SystemStac kError)
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:73:in `select'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:73:in `local_constants'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:531:in `new_constants_in'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:525:in `collect'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:525:in `new_constants_in'
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/plugin/locator.rb:89:in `plugins'
... 12095 levels...
from ./unit/../test_helper.rb:2
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from unit/my_test.rb:1
Я обнаружил, что у нас был установлен испытательный блок и удалили его. Даже после этого та же проблема продолжает появляться. Я установил rcov и то же самое, используя rcov также.
C: /Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb: 666: в `hash ': уровень слишком глубокий (SystemStackError)
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `inject'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:664:in `each'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:664:in `inject'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb:664:in `hash'
from C:/Ruby/lib/ruby/1.8/tsort.rb:219:in `[]='
from C:/Ruby/lib/ruby/1.8/tsort.rb:219:in `each_strongly_connected_component_from'
from C:/Ruby/lib/ruby/1.8/tsort.rb:219:in `each'
from C:/Ruby/lib/ruby/1.8/tsort.rb:219:in `each_strongly_connected_component_from'
... 12099 levels...
from C:/Ruby/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0-x86-mswin32/bin/rcov:554:in `load'
from C:/Ruby/lib/ruby/gems/1.8/gems/rcov-0.8.1.2.0-x86-mswin32/bin/rcov:554
from C:/Ruby/bin/rcov:19:in `load'
from C:/Ruby/bin/rcov:19
кто-нибудь столкнулся с чем-то вроде этого раньше .. Я понимаю, что драгоценный камень требовать вызывался снова и снова .. есть ли способ обойти это?
Я попытался создать новый проект и написание простого модульного тестирования на той же системе, и она работала как шарм ... Так что я предполагаю, что проблема с одним из плагинов, которые я установил. . Также каждый раз я начинаю запускать тесты это предупреждение приходит первый .. C: /Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/gem_dependency.rb: 99: Предупреждение: Gem :: Dependency # version_requirements устарела и будет удалена с августа 2010 года. Используйте #requirement Я обновил драгоценные камни, используя gem update -system и все еще предоставляя мне sa me error .. Заранее благодарим за помощь ... –