With RSpec 1.2.4, autospec runs twice


#1

Hi,

I created a ticket for this in Lighthouse (
https://rspec.lighthouseapp.com/projects/5645/tickets/797-with-rspec-124-autospec-runs-twice).
However, I wanted to throw this out to the mailing list. Has anyone
else
run into this after the 1.2.4 upgrade? Previously on 1.2.2, autospec
was
running properly. I suspect that the issue is related to the DRB server
detection, but I have not dug into it too deep.

Thanks,
Chuck


#2

On Wed, Apr 22, 2009 at 8:29 AM, Charles G.
removed_email_address@domain.invalid wrote:

Hi,

I created a ticket for this in Lighthouse
(https://rspec.lighthouseapp.com/projects/5645/tickets/797-with-rspec-124-autospec-runs-twice).
However, I wanted to throw this out to the mailing list. Has anyone else
run into this after the 1.2.4 upgrade? Previously on 1.2.2, autospec was
running properly. I suspect that the issue is related to the DRB server
detection, but I have not dug into it too deep.

Did you update the scripts with “script/generate rspec” when you
upgraded?


#3

I did. BTW, I ended up digging into the issue and posted a patch for
the
issue in the bug listed below. In short, DrbCommandLine.run is
returning
nil even if the running against Drb server succeeds. This causes the
logic
in Spec::runner::OptionParser.parse_drb to return false which in turn
causes
the specs to be run locally.

Thanks,
Chuck


#4

On Wed, Apr 22, 2009 at 11:12 AM, Charles G.
removed_email_address@domain.invalid wrote:

I did. BTW, I ended up digging into the issue and posted a patch for the
issue in the bug listed below. In short, DrbCommandLine.run is returning
nil even if the running against Drb server succeeds. This causes the logic
in Spec::runner::OptionParser.parse_drb to return false which in turn causes
the specs to be run locally.

Cool - thanks for the patch!