# Fixture data not saved into test database

**URL:** <https://www.ruby-forum.com/t/fixture-data-not-saved-into-test-database/171084>\
**Category:** Rails\
**Created:** [June 26, 2009, 9:08am UTC](https://www.ruby-forum.com/t/fixture-data-not-saved-into-test-database/171084 "2009-06-26T09:08:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixelhandler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/71e660/32.png) [@pixelhandler](https://www.ruby-forum.com/u/pixelhandler)\
**Post date:** [June 26, 2009, 9:08am UTC](https://www.ruby-forum.com/t/fixture-data-not-saved-into-test-database/171084/1 "2009-06-26T09:08:01Z")

</div>

I am using Authlogic for user authentecation and create a users.yml  
for fuctional testing. My unit tests pass, but functional tests fail;  
since the fixture data wasn’t saved to the test database. I get errors  
like: StandardError: No fixture with name …

I few weeks back… the users.yml file was working fine and storing  
user records in the test database. I think the update to Rails 2.3.2  
change something or the Authlogic gem update.

I’ve tried dropping all my tables in both test and development  
databases then running…

rake db:migrate  
rake db:fixtures:load

…but the result is a user table with no records.

Is there something I need to add to my tests to store the fixture  
data?

Many thanks,  
-Bill
