[rspec-devel] [ rspec-Bugs-15364 ] if all examples are pending, exceptions in 'before' block are not shown

noreply at rubyforge.org noreply at rubyforge.org
Sun Nov 18 23:38:56 EST 2007


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

Category: expectation module
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Chad Woolley (thewoolleyman)
Assigned to: Nobody (None)
Summary: if all examples are pending, exceptions in 'before' block are not shown

Initial Comment:
This is with trunk.  To reproduce:

1. make a spec with a single pending example
2. make a before block with an exception
3. run it - there are no errors reported, but return code ($?) is nonzero
4. Add a dummy non-pending example
5. run again - now you see the error reported

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

Comment By: Chad Humphries (spicycode)
Date: 2007-11-18 23:38

Message:
Moved to http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/75-15364-if-all-examples-are-pending-exceptions-in-before-block-are-not-shown#ticket-75-2

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

Comment By: Chad Woolley (thewoolleyman)
Date: 2007-11-06 10:10

Message:
I think it IS running, though.  The dummy exception in
before, even though there are no examples, is what's causing
the nonzero return code.

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

Comment By: David Chelimsky (dchelimsky)
Date: 2007-11-06 09:11

Message:
If there are no examples, then before(:each) shouldn't run, so that part of the behaviour is to be expected.

I think the problem here is the non-zero return code, so I'll leave this open until we resolve that.

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

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


More information about the rspec-devel mailing list