From: Brian Candler Date: 2012-09-07T23:44:04+09:00 Subject: Re: assert All lines Mario Ruiz wrote in post #1075041: > assert_all { > 1==1 > 2==3 > 3==3 > } If you *really* want what you've written then you'll need something like ParseTree to extract the individual expressions and assert them individually. But you could just do: assert 1==1 assert 2==2 assert 3==3 or: assert(1==1 && 2==2 && 3==3) In both cases these will "fail fast", i.e. as soon as one expression fails no more will be tried. If you want to run all three regardless, then you'll need some sort of flag to say that one of them failed, and test that at the end. -- Posted via http://www.ruby-forum.com/.