Forum: RSpec With RSpec 1.2.4, autospec runs twice

Posted by Charles Grindel (Guest)
on 2009-04-22 15:30
(Received via mailing list)
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
Posted by David Chelimsky (Guest)
on 2009-04-22 15:57
(Received via mailing list)
On Wed, Apr 22, 2009 at 8:29 AM, Charles Grindel 
<chuck@chuckgrindel.com> 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?
Posted by Charles Grindel (Guest)
on 2009-04-22 18:17
(Received via mailing list)
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
Posted by David Chelimsky (Guest)
on 2009-04-22 18:34
(Received via mailing list)
On Wed, Apr 22, 2009 at 11:12 AM, Charles Grindel
<chuck@chuckgrindel.com> 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!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.