[rspec-devel] [ rspec-Feature Requests-6523 ] Run rspec on rails without a db
noreply at rubyforge.org
noreply at rubyforge.org
Wed Apr 4 05:49:57 EDT 2007
Feature Requests item #6523, was opened at 2006-11-06 16:07
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=6523&group_id=797
Category: None
Group: None
>Status: Closed
Priority: 3
Submitted By: Paul Pagel (paulwpagel)
>Assigned to: Aslak Hellesøy (aslak_hellesoy)
Summary: Run rspec on rails without a db
Initial Comment:
We need to be able to run the specs without the database. We have no model objects in some of our projects, therefore, no use for the db.
----------------------------------------------------------------------
>Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-04-04 05:49
Message:
Fixed in /branches/0.9-dev#1689
If you remove config/database.yml from your Rails project, the various spec:* rake tasks will no longer depend on db:test:prepare.
Further, you should tell Rails not to use AR in your config/environment.rb file
----------------------------------------------------------------------
Comment By: David Chelimsky (dchelimsky)
Date: 2007-04-01 10:08
Message:
Now that we have a cleaner configuration model, we should add a configuration option to do this:
Spec::Runner.configure do |config|
config.use_database = false
end
(or something like that)
----------------------------------------------------------------------
Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2006-11-06 20:28
Message:
How do I reproduce this missing feature? How would you like it to work exactly? Code please.
http://rspec.rubyforge.org/contribute.html
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=6523&group_id=797
More information about the rspec-devel
mailing list