[rspec-devel] [ rspec-Bugs-15232 ] heckle is not working correctly in trunk (as of r2801)

noreply at rubyforge.org noreply at rubyforge.org
Wed Oct 31 08:15:05 EDT 2007


Bugs item #15232, was opened at 2007-10-31 11:54
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15232&group_id=797

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
>Assigned to: David Chelimsky (dchelimsky)
Summary: heckle is not working correctly in trunk (as of r2801)

Initial Comment:
# From trunk
$ cd rspec
$ ruby bin/spec examples/greeter_spec.rb --heckle Greeter
..

Finished in 0.030025 seconds

2 examples, 0 failures
**********************************************************************
***  Greeter#greet loaded with 3 possible mutations
**********************************************************************

3 mutations remaining...
2 mutations remaining...
1 mutations remaining...
No mutants survived. Cool!


Seems fine, except that it should be failing the heckling.

----------------------------------------------------------------------

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-10-31 12:15

Message:
Actually, heckle does not rely on it - it's RSpec's override of heckle's tests_pass? method that relies on it. A simple tweak to that method (driven by specs, of course) solves the problem.

Fixed in r2803

----------------------------------------------------------------------

Comment By: David Chelimsky (dchelimsky)
Date: 2007-10-31 12:01

Message:
It's because Spec::Runner::Options was changed to return success or failure instead of a number of failures, upon which heckle relies.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=15232&group_id=797


More information about the rspec-devel mailing list