# Fixtures outside of rails

**URL:** <https://www.ruby-forum.com/t/fixtures-outside-of-rails/105823>\
**Category:** Rails\
**Created:** [June 3, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/fixtures-outside-of-rails/105823 "2007-06-03T13:11:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nappin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f475e1/32.png) [@nappin](https://www.ruby-forum.com/u/nappin)\
**Post date:** [June 3, 2007, 1:11pm UTC](https://www.ruby-forum.com/t/fixtures-outside-of-rails/105823/1 "2007-06-03T13:11:45Z")

</div>

Hi,  
Is anyone using fixtures in unit tests for applications using  
ActiveRecord outside of rails? I found an example to do this from some  
old threads. They cite as an example:  
[http://opensvn.csie.org/ezra/rails/ez\_where\_two/test/test\_helper.rb](http://opensvn.csie.org/ezra/rails/ez_where_two/test/test_helper.rb)

However, I copied this exactly and can still not get fixtures to work by  
putting ‘fixtures :my\_model’ at the top of my test class. They do work  
however if I create them explicitely in each test method through the  
create\_fixtures method.

Any help would be appreciated.  
Thanks,  
Ray.
