[rspec-users] rspec_rails and spec_server
Mark Wilden
mark at mwilden.com
Fri Dec 12 13:30:18 EST 2008
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
On Thu, Dec 11, 2008 at 6:01 PM, Mark Wilden <mark at mwilden.com> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081212/73db2552/attachment.html>
More information about the rspec-users
mailing list