On Tue, Jul 28, 2009 at 8:03 PM, rogerdpack wrote:
> Question.
>
> Currently with this test:
>
> instance.splatted3().should raise_error(ArgumentError)
This should be:
lambda { instance.splatted3() }.should raise_error(ArgumentError)
See http://rspec.rubyforge.org/rspec/1.2.8/classes/Spec/Mat
Question.
Currently with this test:
instance.splatted3().should raise_error(ArgumentError)
if it's broken, and returns [] instead of raising appropriately,
currently the error reported is:
expected ArgumentError, got #
shouldn't this have been reported as
expected ArgumentError, got []
?
Mu