On 6 avr, 17:23, Frederick Cheung <frederick.che...@gmail.com> wrote:
> On Apr 6, 11:09 pm, Constantin Gavrilescu
>
> <comisarulmoldo...@gmail.com> wrote:
> > I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
> > test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
> > activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
> > mismatch for class TestCase (TypeError)
>
> > I generated a new test app and all tests run OK.
>
> > For the upgrade I ran rake:update and renamed the class in test_helper
> > to ActiveSupport::TestCase. Also renamed the classes in all unit tests
> > and to inherit from ActiveSupport::TestCase and in functional tests to
> > inherit from ActionController::TestCase.
>
> Looks to me like you accidentally declared a new class called
> ActiveSupport::TestCase. You said your test_helper.rb is almost the
> same as one in a freshly generated app - what are the differences?

There must have been a plugin that changed the class TestCase class. I
realized that have done a search and replace in the plugins folder too
for Test::Unit::TestCase and replaced it to ActiveSupport::TestCase. I
did an svn revert on plugins and the rake test:units don't show the
superclass mismatch for class TestCase error.


--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to