back

Rails 2.3 Tests ( undefined method use_transactional_fixtures= )

Note that if you’re in edge rails your test helper has to have class class ActiveSupport::TestCase instead of class Test::Unit::TestCase.

Comment here

Otherwise you’ll get: undefined method `use_transactional_fixtures=

December 17, 2008

  1. Brian Hardy says:

    Ugh. Thank you. After pages of irrelevant "answers" to this "problem" I found this. Hooray!

  2. Mark Dodwell says:

    Thanks! Have been looking for this one too...

  3. Justin says:

    thanks man, what a silly error to be in edge rails

  4. Chris says:

    Wonderful. Thank you for this answer! This fix worked perfectly.

  5. brookr says:

    Sheesh. my thanks as well. Seen any good gotcha-lists for this stuff?

  6. Mischa says:

    @everyone

    Yeah, this is one of those things that seems to affect a lot of people.

    @brookr
    Not sure. My tactic is just to google things, and hope for the best. (This means I often end up on entirely random mailing lists in japanese reading posts from 2004 too often, though...)

  7. Matt Beedle says:

    Thanks, you just saved me quite some time I think!

  8. Hates_ says:

    Thanks! Just what I needed.

  9. DreamT says:

    Thanks as well for taking the time to post this for the community.

  10. kronn says:

    I guess I'm kinda late to the party... :-)

    Thank you for this tip!

  11. Ankit says:

    initially i generated my app in 2.2.2 and due to nested form usage I switch to 2.3.2. While running my test i get the error "undefined method `use_transactional_fixtures=". by going through this solution I get rectified my problem.

    Thank you very much

  12. Sock says:

    Much appreciated. This saved me loads of time.

  13. Sven says:

    And another bundle of thanks! Your post has helped me a lot.

  14. Bill Burcham says:

    +1 Thanks!!

  15. Juan says:

    Thanks for your time to write what I have no time to write but I need to know-communicate.