# Error loading Rails fixtures

**URL:** <https://www.ruby-forum.com/t/error-loading-rails-fixtures/151248>\
**Category:** RSpec\
**Created:** [October 18, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/error-loading-rails-fixtures/151248 "2008-10-18T20:55:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottbrisko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Post date:** [October 18, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/error-loading-rails-fixtures/151248/1 "2008-10-18T20:55:20Z")

</div>

Hi all;

I’m getting a weird error from the rspec gem when using rake to load  
fixtures in rails:

% rake db:fixtures:load RAILS\_ENV=test  
/path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/options.rb:  
229:in `files_to_load': File or directory not found: db:fixtures:load (RuntimeError) from /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/ options.rb:221:in`each’  
from /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/  
options.rb:221:in `files_to_load' from /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/ options.rb:98:in`run\_examples’  
from /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec.rb:21:in `run' from /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner.rb: 192:in`register\_at\_exit\_hook’  
from /usr/bin/rake:19

It’s getting something in files\_to\_load that isn’t a file or  
directory. It’s isolated to one project, so it seems configuration-  
related.

Anyone know what might be going on here?

Many thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![scottbrisko](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@scottbrisko](https://www.ruby-forum.com/u/scottbrisko)\
**Post date:** [October 20, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/error-loading-rails-fixtures/151248/2 "2008-10-20T14:38:53Z")

</div>

On Sat, Oct 18, 2008 at 1:55 PM, Scott B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> /path/to/Ruby/Gems/1.8/gems/rspec-1.1.8/lib/spec/runner/options.rb:221:in  
> `register\_at\_exit\_hook’  
> from /usr/bin/rake:19
> 
> It’s getting something in files\_to\_load that isn’t a file or directory. It’s  
> isolated to one project, so it seems configuration-related.
> 
> Anyone know what might be going on here?

Would you please file a bug report at [http://rspec.lighthouseapp.com](http://rspec.lighthouseapp.com)?
