[rspec-users] rake spec loads development environment
jonathan at parkerhill.com
Tue Aug 19 17:08:25 EDT 2008
On Aug 19, 2008, at 4:32 PM, Satish Gunnu wrote:
> Yes I think that is what's happening in my case. is this how it is
> supposed to work? or can we have rspec ignore the step to look at
> development environment. thanks so much for all your help.
you'll notice that vendor/plugins/rspec-rails/rspec.rake contains the
spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config',
'database.yml')) ? "db:test:prepare" : :noop
which you could change or comment out
>> iirc, it looks at the development environment to prepare the db
>> schema, but still runs the specs in test. Is that what you're seeing?
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users