Hi. I’m writing a very small rails app to display a form that submits to
a 3rd party web service. Because the 3rd party service handles data
storage, I don’t need a database. I chose rails to take advantage of
everything it offers besides ActiveRecord, but it seems that I can’t run
the tests without a database running, even though I’m not using a
I’ve got unit tests running without the database by simply not using
rake to run them. The functional tests, however, come with very useful
services like TestRequest/TestRespsonse and all of the tag assertions,
so I’m using that framework. The fact that it needs to hook into the
database adds precious seconds to every single test run. Though that may
seem trivial, it’s actually quite painful if you’re using a TDD cycle
with very small steps (which I do).
Can anybody tell me how to configure the functional tests to run without
requiring a database?