Forum: RSpec rspec_rails and spec_server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mark W. (Guest)
on 2008-12-12 04:02
(Received via mailing list)
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 method
`active_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:in
`clear_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:in `run'
    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:in
`parse_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:in
`options'
    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:in `load'
    from /opt/local/bin/spec:19
Mark W. (Guest)
on 2008-12-12 20:31
(Received via mailing list)
Andreas's patch at
http://rspec.lighthouseapp.com/attachments/69957/0...
to fix this.

///ark
This topic is locked and can not be replied to.