Forum: RSpec Rspec include paths

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.
1046d40347b8cfbdb75d852fbc3e9bec?d=identicon&s=25 Michael Madrid (kagemusha)
on 2012-06-08 23:03
'm using rspec 2.10 with Rails 3.2.1 and have problems with classes not
being found.

I have put a class called DbTasks under a dir app/util. Under spec, i've
created file util/db_tasks_spec.rb which runs afer i included the line:

require File.join(File.dirname(FILE), '../../app/util/db_tasks')

However, rspec now isn't able to find my models. I don't want to have to
include these manually. Is there a way to config rspecs paths so
everything gets found?
This topic is locked and can not be replied to.