Topic: LoadError on rspec

Hi everyone..
When running rspec I'd got the err0r:

home/jd/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- lib/generate_payday (LoadError)

In my application_controller.rb

Dir["lib/*.rb"].each do |path|
    require_dependency path 
  end

The file id located in lib folder, once I remove the code from the application_controller the rspec run.
Thanks in advance. smile