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

**URL:** <https://discuss.rubyonrails.org/t/solution-for-undefined-method-use-transactional-fixtures-problem/6966>\
**Category:** rubyonrails-talk\
**Created:** [January 10, 2007, 3:22pm UTC](https://discuss.rubyonrails.org/t/solution-for-undefined-method-use-transactional-fixtures-problem/6966 "2007-01-10T15:22:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![21croissants](https://avatars.discourse-cdn.com/v4/letter/2/45deac/32.png) [@21croissants](https://discuss.rubyonrails.org/u/21croissants)\
**Post date:** [January 10, 2007, 3:22pm UTC](https://discuss.rubyonrails.org/t/solution-for-undefined-method-use-transactional-fixtures-problem/6966/1 "2007-01-10T15:22:20Z")

</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:** ![Joe11](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@Joe11](https://discuss.rubyonrails.org/u/Joe11)\
**Post date:** [April 6, 2007, 9:14pm UTC](https://discuss.rubyonrails.org/t/solution-for-undefined-method-use-transactional-fixtures-problem/6966/2 "2007-04-06T21:14:57Z")

</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 Noon Notary Depot www.notarydepot.com
