[rspec-users] RSpec with Rails but without any database

Pat Maddox pergesu at gmail.com
Sat Dec 16 09:04:48 EST 2006

On 12/16/06, Tobias Grimm <listaccount at e-tobi.net> wrote:
> Hi!
> Any hints on how I can get RSpec/Rails to work without any database?
> I've got the Test::Unit tests working by adding a file in lib/tasks
> which clears the prerequisites of the rake targets "test:units",
> "test:functionals" and so on. What's the shortest way to make RSpec work
> without any database?

I haven't done this, but I presume you'd apply the same method to the
spec tasks.  So clear the prerequisites of spec:models,
spec:controllers, spec:views.  And let me know if it works :)


More information about the rspec-users mailing list