[rspec-devel] [ rspec-Bugs-12648 ] rspec_on_rails without a database

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 18 22:27:15 EST 2007


Bugs item #12648, was opened at 2007-07-27 22:26
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=12648&group_id=797

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: rspec_on_rails without a database

Initial Comment:
With this setup:

RSpec (1.0.5 or trunk r2183)
Edge Rails (r7245) 

And following these instructions from http://rubyforge.org/tracker/?func=detail&group_id=797&aid=6523&atid=3152:

Remove config/database.yml.
Tell Rails not to use AR in config/environment.rb.

This no longer works. With a new rails app configured that way, I get the following error:

undefined method `connected?' for ActiveRecord::Base:Class
/Users/david/projects/ruby/nodb/vendor/rails/activerecord/lib/active_record/base.rb:1261:in `method_missing'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:48:in `render'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller.rb:70:in `render'
/Users/david/projects/ruby/nodb/app/controllers/things_controller.rb:3:in `index'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/base.rb:1136:in `send'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/base.rb:1136:in `perform_action_without_filters'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/filters.rb:695:in `call_filters'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/filters.rb:687:in `perform_action_without_benchmark'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/rescue.rb:133:in `perform_action'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/base.rb:494:in `send'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/base.rb:494:in `process_without_filters'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/filters.rb:683:in `process_without_session_management_support'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/session_management.rb:122:in `process_without_test'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/test_process.rb:15:in `process'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/test_process.rb:394:in `process'
/Users/david/projects/ruby/nodb/vendor/rails/actionpack/lib/action_controller/test_process.rb:365:in `get'
./spec/controllers/things_controller_spec.rb:5:
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/example.rb:81:in `instance_eval'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/example.rb:81:in `run_example'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/example.rb:26:in `run'
/opt/local/lib/ruby/1.8/timeout.rb:48:in `timeout'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/example.rb:24:in `run'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:81:in `run'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:75:in `each'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/dsl/behaviour.rb:75:in `run'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:58:in `run_behaviours'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:57:in `each'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:57:in `run_behaviours'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/runner/behaviour_runner.rb:21:in `run'
/Users/david/projects/ruby/nodb/vendor/plugins/rspec/lib/spec/runner/command_line.rb:17:in `run'
script/spec:4:

----------------------------------------------------------------------

Comment By: Chad Humphries (spicycode)
Date: 2007-11-19 03:26

Message:
Moved to http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/54-12648-rspec_on_rails-without-a-database

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=12648&group_id=797


More information about the rspec-devel mailing list