[rspec-users] error message feedback

rogerdpack rogerpack2005 at gmail.com
Tue Jul 28 20:03:24 EDT 2009


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 #<NoMethodError: undefined method `call'
for []:Array>

shouldn't this have been reported as

expected ArgumentError, got []

Much thanks.

More information about the rspec-users mailing list