From: Bill Kelly Date: 2009-03-30T09:44:06+09:00 Subject: Re: testy.rb - ruby testing that's mad at the world From: "Bill Kelly" > > assert_{ [false] == shrew.accessories.map(&:active).uniq } output: > > [true] == shrew.accessories.map(&:active).uniq --> false > shrew --> User 4 > shrew.accessories --> [Accessory 501] > shrew.accessories.map(&:active) --> [false] > shrew.accessories.map(&:active).uniq --> [false]. Er, sorry, I think I failed at reconstructing that from the original email. Presumably should be: assert_{ [true] == shrew.accessories.map(&:active).uniq } output: [true] == shrew.accessories.map(&:active).uniq --> false shrew --> User 4 shrew.accessories --> [Accessory 501] shrew.accessories.map(&:active) --> [false] shrew.accessories.map(&:active).uniq --> [false]. Regards, Bill