[rspec-users] rake spec loads development environment

Mark Wilden mark at mwilden.com
Tue Aug 19 17:11:52 EDT 2008


On Tue, Aug 19, 2008 at 2:08 PM, Jonathan Linowes
<jonathan at parkerhill.com>wrote:

>
> you'll notice that vendor/plugins/rspec-rails/rspec.rake contains the line
>
> spec_prereq = File.exist?(File.join(RAILS_ROOT, 'config', 'database.yml'))
> ? "db:test:prepare" : :noop
>
> which you could change or comment out


You'd have to remember to run your migrations against the test db as well as
the dev db.

///ark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080819/b949eb24/attachment.html>


More information about the rspec-users mailing list