# Solution for undefined method \`use\_transactional\_fixtures='

**URL:** <https://www.ruby-forum.com/t/solution-for-undefined-method-use-transactional-fixtures/82544>\
**Category:** Rails\
**Created:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/solution-for-undefined-method-use-transactional-fixtures/82544 "2007-01-19T16:31:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Michel\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@Jean-Michel\_G](https://www.ruby-forum.com/u/Jean-Michel_G)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/solution-for-undefined-method-use-transactional-fixtures/82544/1 "2007-01-19T16:31:14Z")

</div>

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

> **[Fighting the invisible require\_dependency!](http://21croissants.blogspot.com/2007/01/fighting-invisible-requiredependency.html)**
>
> (Warning: Skip this sentimental / philosophical introduction if you want practical information!) Back in 1998, at my first job, I was workin...

Jean-Michel

---

<div class="post-metadata">

**Author:** ![Jean-Michel\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f475e1/32.png) [@Jean-Michel\_G](https://www.ruby-forum.com/u/Jean-Michel_G)\
**Post date:** [April 6, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/solution-for-undefined-method-use-transactional-fixtures/82544/2 "2007-04-06T23:15:29Z")

</div>

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](http://rubyforge.org/tracker/index.php?func=detail&aid=6241&group_id=419&atid=1678)

Hope it saves someone a headache.

Joe N.  
Notary Depot [www.notarydepot.com](http://www.notarydepot.com)
