Jean-Michel G
2007-Jan-10 15:22 UTC
Solution for undefined method `use_transactional_fixtures='' ... problem
If you see this error message: undefined method `use_transactional_fixtures='' for Test::Unit::TestCase:Class (NoMethodError) You should check all your dependencies, all the lines containing require and especially require_dependency. You have probably done a refactoring "Rename" a class and forgot to propagate the change everywhere! More details on http://21croissants.blogspot.com/2007/01/fighting-invisible-requiredependency.html Jean-Michel --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Joe Noon
2007-Apr-06 21:14 UTC
Re: Solution for undefined method `use_transactional_fixtures='' ... problem
The solution that worked for me is to remove "test" from the require_paths line in: /usr/local/lib/ruby/gems/1.8/specifications/ZenTest-3.4.2.gemspec (your path may vary) s.require_paths = ["lib","test"] becomes s.require_paths = ["lib"] I installed a gem recently that also updated hoe and ZenTest, which is right when the problem started. I assume the next release of one of these gems will correct the issue. I found this solution at http://rubyforge.org/tracker/index.php?func=detail&aid=6241&group_id=419&atid=1678 Hope it saves someone a headache. Joe Noon Notary Depot www.notarydepot.com On 1/10/07, Jean-Michel G <address4spams-60m4EJPkapScg7rPLOrFbg@public.gmane.org> wrote:> > If you see this error message: > > undefined method `use_transactional_fixtures='' for > Test::Unit::TestCase:Class (NoMethodError) > > You should check all your dependencies, all the lines containing > require and especially require_dependency. > > You have probably done a refactoring "Rename" a class and forgot to > propagate the change everywhere! > > More details on > http://21croissants.blogspot.com/2007/01/fighting-invisible-requiredependency.html > > Jean-Michel > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---