Tobias Grimm
2006-Dec-16 13:15 UTC
[rspec-users] RSpec with Rails but without any database
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? bye, Tobias
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 :) Pat
Tobias Grimm
2006-Dec-16 17:40 UTC
[rspec-users] RSpec with Rails but without any database
Pat Maddox wrote:> 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 :) >No, it doesn''t. db:test:prepare gets skipped now, but it still tries to connect to a database somewhere, but I can''t figure out where. Tobias