Note that there are some explanatory texts on larger screens.

plurals
  1. POErrors while testing a Rails application
    primarykey
    data
    text
    <p>I'm new to RoR and I'm trying to test my app. </p> <p>In my sample app, I have in user_test.rb:</p> <pre><code>require 'test_helper' class UserTest &lt; ActiveSupport::TestCase def test_truth assert true end end </code></pre> <p>The error I'm getting is:</p> <pre><code>Z:\web\rails\pbbg\test&gt;ruby unit/user_test.rb c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependenci es.rb:105:in `const_missing': uninitialized constant Test::Unit::TestResult::Tes tResultFailureSupport (NameError) from c:/ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.3/lib/test/unit/testre sult.rb:28 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_suppo rt/dependencies.rb:158:in `require' from c:/ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.3/lib/test/unit/ui/tes trunnermediator.rb:9 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge m_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re quire' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_suppo rt/dependencies.rb:158:in `require' ... 6 levels... from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:214:in `run' from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' from c:/ruby/lib/ruby/1.8/test/unit.rb:278 from unit/user_test.rb:3 </code></pre> <p>I can't find what I've done wrong.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload