Forum: Ruby on Rails Solution for undefined method `use_transactional_fixtures='

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jean-Michel G (Guest)
on 2007-01-19 17:31
(Received via mailing list)
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-...

Jean-Michel
Joe N. (Guest)
on 2007-04-07 01:15
(Received via mailing list)
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...

Hope it saves someone a headache.

Joe N.
Notary Depot www.notarydepot.com
This topic is locked and can not be replied to.