[rspec-devel] new pending feature (pending release)
dan at tastapod.com
Wed Jun 27 11:01:32 EDT 2007
I think that's brilliant! Especially that the pending /fails/ when the
block /works/, so you have to remove the pending block before you can
Mind if I steal it for rbehave?
Bob Cotton wrote:
> "David Chelimsky" <dchelimsky at gmail.com> writes:
>> I just added a new "pending" feature. It's in trunk (rev 2118+) and
>> will be part of the 1.0.6 release (*probably* within the next week).
>> Read all about it:
> A very nice feature.
> Here's a twist to consider:
> We use rspec for functional testing of a large-ish
> application. Sometimes we find bugs that may take some time to be
> resolved, a few days, a few weeks. Once the bug is identified, I don't
> want to see it failing the nightly builds, day after day.
> pending() might be useful here, as I can say:
> pending("Bug 12345 being fixed")
> But then I would have to wrap this in some conditional logic that
> tests if the bug is actually fixed.
> But, what if pending took a block:
> pending("Bug 12345 being fixed") do
> actual.should == expected
> and pending would fail (not with a pending exception) once the code
> inside the block started passing?
> That way we could mark something as a know issue, and be notified when
> that thing was fixed and go removed the pending.
> - Bob
> rspec-devel mailing list
> rspec-devel at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-devel