smparkes / capybara-envjs

Capybara driver for envjs gem
http://github.com/smparkes/capybara-envjs
130 stars 10 forks source link

Error when running under cucumber with spork #15

Open papersmith opened 14 years ago

papersmith commented 14 years ago

When I run my cucumber features with spork, it throws an error:

undefined method `flush' for class `DRb::DRbObject' (NameError)

full backtrace

It runs fine standalone without spork. It also runs fine with selenium and rack_test.

smparkes commented 14 years ago

Huh. I know nothing about spork and very little about Drb. Not sure what could be the issue here ...

Do you have an example that you can post somewhere?

papersmith commented 14 years ago

Basically it happens when I call click_button, perhaps other actions as well.

To be honest I have no idea what's going on either, but my ugly hack seems to at least make everything pass:

class DRb::DRbObject
  def flush
  end
end
gregwebs commented 14 years ago

I am on 0.4 and experienced this. The hack works for me

smparkes commented 14 years ago

I missed the backtrace at first.

I think I'm just calling flush on stdout/stderr for debugging.

Seems to me like if spork is going to muck with stdout/stderr, it should make the sufficiently stream-like.