" 1) Failure:
test_foo(FooTester) [-:16]:
<[[:a, :b, [:c]]]> expected to be an instance of
<Hash> but was
<Array>."
written a bit shorter, perhaps like this:
" 1) Failure:
test_foo(FooTester) [-:16]:
instance of <Hash> expected but was <Array>."
because sometimes I have very large objects to compare. I was not
successful by setting use_pp=false, somehow there is no difference
between those two (with and w/o use_pp=false).
" 1) Failure:
test_foo(FooTester) [-:16]:
<[[:a, :b, [:c]]]> expected to be an instance of
<Hash> but was
<Array>."
written a bit shorter, perhaps like this:
" 1) Failure:
test_foo(FooTester) [-:16]:
instance of <Hash> expected but was <Array>."
because sometimes I have very large objects to compare. I was not
successful by setting use_pp=false, somehow there is no difference
between those two (with and w/o use_pp=false).
> you should grab unitdiff from the ZenTest package, available at
> http://rubyforge.org/projects/zentest/
>
> it will work wonders on cleaning up large amounts of testing feedback.
does it also clean up the messages? Couldn't find anything in the docs
about it.
Ahh, I misread your request. No it doesn't clean up the message.
···
On 12/12/05, Patrick Gundlach <clr10.10.randomuser@spamgourmet.com> wrote:
[...]
>> I'd like to have the
>>
>> " 1) Failure:
>> test_foo(FooTester) [-:16]:
>> <[[:a, :b, [:c]]]> expected to be an instance of
>> <Hash> but was
>> <Array>."
>>
>> written a bit shorter, perhaps like this:
>>
>> " 1) Failure:
>> test_foo(FooTester) [-:16]:
>> instance of <Hash> expected but was <Array>."
Yes and no. It show's a diff of the two items that were suppose to be equal. This is almost a required feature when working with assert_tag() in Rails, for example.
James Edward Gray II
···
On Dec 12, 2005, at 11:07 AM, Patrick Gundlach wrote: