andrew/split — pull request #53 by leocassarani (2012-05-21 16:34:11+00:00)
Title: Fix failing tests on Rubinius (issue #52)

This pull request fixes issue #52, which deals with 5 failing tests under Rubinius, as can be seen in the following Travis CI build log: http://travis-ci.org/#!/andrew/split/builds/1389933.

Whilst I'm not entirely sure what change in Rubinius led to the failures, the simple fix is to raise an instance of `Errno::ECONNREFUSED`, rather than the class itself, as a result of calling a stubbed method. I believe this may be something to do with the way that the `ECONNREFUSED` exception class is initialised, meaning RSpec will be unable to instantiate it automatically.