# Fixtures don't load on functional tests with 'rake test:functionals' (but do with ruby!)

**URL:** <https://www.ruby-forum.com/t/fixtures-dont-load-on-functional-tests-with-rake-test-functionals-but-do-with-ruby/123906>\
**Category:** Rails\
**Created:** [December 21, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/fixtures-dont-load-on-functional-tests-with-rake-test-functionals-but-do-with-ruby/123906 "2007-12-21T22:25:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MonkeyLice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@MonkeyLice](https://www.ruby-forum.com/u/MonkeyLice)\
**Post date:** [December 21, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/fixtures-dont-load-on-functional-tests-with-rake-test-functionals-but-do-with-ruby/123906/1 "2007-12-21T22:25:28Z")

</div>

I’ve got a problem that I’ve been hurting my brain on for a little  
while:

When I run my two functional tests using

% ruby thing\_ones\_controller\_test.rb  
% ruby thing\_twos\_controller\_test.rb

they work fine.

If I run

% rake test:functionals

and either ONE of them is in the functional directory it works fine as  
well. However when both are in the functional directory the first  
functional test fails because the fixtures don’t get loaded. WTF^^?

All unit tests pass fine (and load fixtures) as well if I do “rake  
test:units” and I’ve never had trouble with them.

I’m running Ruby 1.8.4, Rails 1.2.3, Rake 0.7.2.

Anyone else fight this battle?

---

<div class="post-metadata">

**Author:** ![MonkeyLice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@MonkeyLice](https://www.ruby-forum.com/u/MonkeyLice)\
**Post date:** [December 21, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/fixtures-dont-load-on-functional-tests-with-rake-test-functionals-but-do-with-ruby/123906/2 "2007-12-21T23:55:45Z")

</div>

Okay, hopefully this will help someone someday… don’t copy and paste  
the code from a working functional test and forget to change the  
requires and classes. D’oh.
