[rspec-users] can't get (r)spec to work in non-rails project

Edvard Majakari edvard at majakari.net
Mon Feb 18 06:58:18 EST 2008

> I would think just have the spec_helper.rb file for the specs try to load
> config/rspec.rb or something along those lines. Similar to how rspec for
> rails just loads the rails env. It would then be up to the user to do the
> necessary loading in that file. There's really no way to know what crazy
> way someone might layout their projects.

+1. Something along the lines

require File.join(File.dirname(__FILE__), 'config.rb') if

would be sufficient, no?

"One day, when he was naughty, Mr Bunnsy looked over the hedge into
Farmer Fred's field and it was full of fresh green lettuces. Mr
Bunnsy, however, was not full of lettuces. This did not seem fair."
  -- Terry Pratchett, Mr. Bunnsy Has An Adventure

More information about the rspec-users mailing list