[Rspec-users] DRb error when using rails_spec on OS X
geeksam at gmail.com
Thu Sep 7 00:44:29 EDT 2006
> > Weird. I can't reproduce this. I have the same versions of everything as you.
> > It's probably a drb issue.
Looks like it, yes.
> > 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.
Nope, same issue (and therefore, officially Not Your Problem). (=
> Try these:
> a) Replace 'druby://localhost:8989' with 'druby://localhost:0' in both
> rails_spec and rails_spec_runner
> b) Replace 'druby://localhost:8989' with
> 'druby://localhost.localdomain:8989:' in both rails_spec and
Doing this, rails_spec_runner aborts with the following:
Loading Rails environment
/usr/local/lib/ruby/1.8/drb/drb.rb:862:in `initialize': getaddrinfo:
No address associated with nodename (SocketError)
from /usr/local/lib/ruby/1.8/drb/drb.rb:862: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'
> c) Replace 'druby://localhost:8989' with 'druby://127.0.0.1:8989:' in
> both rails_spec and rails_spec_runner
Same as (a), above.
Thanks for the help, though. The spec runner will probably work on
the Windows box where I've been doing most of my for-pay Rails dev
anyway; this was certainly enough for me to get a flavor of using
RSpect with Rails. (It's certainly no slower than the Test::Unit
stuff... and as a bonus, it doesn't overload %w( unit functional
integration ). (=
More information about the Rspec-users