Rspec_rails and spec_server


#1

Just in case anyone can just short-circuit this, I upgraded to Rails
2.2.2
and RSpec-rails 1.1.11, and now when I run ‘spec --drb foo.spec’ I get
an
error because spec_server is trying to call
ActiveRecord::Base.active_connections, which seems to be gone in 2.2.2.

Anyone know anything?

(druby://127.0.0.1:8989)
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1833:in
method_missing_without_paginate': undefined local variable or methodactive_connections’ for ActiveRecord::Base:Class (NameError)
from (druby://127.0.0.1:8989)
/opt/local/lib/ruby/gems/1.8/gems/mislav-will_paginate-2.3.6/lib/will_paginate/finder.rb:167:in
method_missing' from (druby://127.0.0.1:8989) script/spec_server:19:inclear_reloadable_connections!’
from (druby://127.0.0.1:8989)
/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:158:in
cleanup_application' from (druby://127.0.0.1:8989) script/spec_server:29:inrun’
from
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/drb_command_line.rb:13:in
run' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/option_parser.rb:184:inparse_drb’
from
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/option_parser.rb:124:in
order!' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner.rb:202:inoptions’
from
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/command_line.rb:7:in
run' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4 from /opt/local/bin/spec:19:inload’
from /opt/local/bin/spec:19


#2

Andreas’s patch at
http://rspec.lighthouseapp.com/attachments/69957/0001-Fixed-spec_server-to-work-with-Rails-2.2.2.patchseems
to fix this.

///ark