[Rspec-users] DRb error when using rails_spec on OS X

aslak hellesoy aslak.hellesoy at gmail.com
Wed Sep 6 15:12:46 EDT 2006


On 9/6/06, Sam Livingston-Gray <geeksam at gmail.com> wrote:
> Hi, all-
>
> I started playing with RSpec in a new Rails app.  I've installed the
> plugin and bootstrapped it, and run 'script/rails_spec_runner' (not
> rails_spec_server as the website currently reads, btw)

I've fixed this on trunk. The file will from now on be called
script/rails_spec_server as the docs say.

> in a separate
> shell, then in another shell I run 'script/rails_spec' and get the
> following:
>

That should give you the same as if you run just 'spec' (the standard
rspec help). What you should do is  'script/rails_spec spec' although
your problem seems to be related to something else.

> /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:
> No address associated with nodename (SocketError)
>         from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any'
>         from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server'
>         from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'
>         from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'
>         from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'
>         from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
>         from script/rails_spec:6
>
> Running 'rake spec:models' does work, though with the same overhead of
> 'rake test:units'.
>
> I'm on Mac OS 10.4.7 running ruby 1.8.4 (2005-12-24)
> [powerpc-darwin8.4.0] and RSpec 0.6.3.  The firewall on this machine


Weird. I can't reproduce this. I have the same versions of everything as you.
It's probably a drb issue.

> is active, but I've opened port 8989 for both TCP and UDP (you know,
> just in case) with no change in behavior.
>
> Any help would be appreciated.
>

Let's determine whether it's a pure Drb problem. Can you get this
example to work?
=> http://www.rubycentral.com/book/ospace.html#UG

If that doesn't work your problem is outside rspec. Let me know how it
goes and I'll dig further.

Aslak

> Thanks,
> -Sam
> _______________________________________________
> Rspec-users mailing list
> Rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the Rspec-users mailing list