Hello. I''m new to RoR and I''m trying to test my app. In my sample app, I have in user_test.rb: require ''test_helper'' class UserTest < ActiveSupport::TestCase def test_truth assert true end end The error I''m getting is: Z:\web\rails\pbbg\test>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 I can''t find what I''ve done wrong. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 26, 9:34 pm, Gabriel Bianconi <bianconi.gabr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I can''t find what I''ve done wrong.Is rails getting confused because you''ve got a test/unit gem that is being used instead of the older version that is part of ruby 1.8 ? Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I don''t know. How do I check this? On 26 nov, 19:44, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Nov 26, 9:34 pm, Gabriel Bianconi <bianconi.gabr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > I can''t find what I''ve done wrong. > > Is rails getting confused because you''ve got a test/unit gem that is > being used instead of the older version that is part of ruby 1.8 ? > > Fred-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 26, 9:54 pm, Gabriel Bianconi <bianconi.gabr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I don''t know. How do I check this? >You could try uninstalling that gem. Fred> On 26 nov, 19:44, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On Nov 26, 9:34 pm, Gabriel Bianconi <bianconi.gabr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > I can''t find what I''ve done wrong. > > > Is rails getting confused because you''ve got a test/unit gem that is > > being used instead of the older version that is part of ruby 1.8 ? > > > Fred-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.