Forum: RSpec Error loading Rails fixtures

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Scott B. (Guest)
on 2008-10-18 22:55
(Received via mailing list)
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
David C. (Guest)
on 2008-10-20 16:38
(Received via mailing list)
On Sat, Oct 18, 2008 at 1:55 PM, Scott B. <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?
This topic is locked and can not be replied to.