3 ms·
This. I actually wish the be_ facility worked for methods besides booleans. Like: it do frood.should be_hoopy_for(apples, oranges) end Which wou
by erikpukinskis 16y ago
This. I actually wish the be_ facility worked for methods besides booleans. Like:
it do
frood.should be_hoopy_for(apples, oranges)
end
Which would say "#<Frood> should have been hoopy_for #<Apples>, #<Oranges>". There's real value in giving your test infrastructure more responsibility for actually piecing together the assertions. Not only does it give you better error messages, it lets you avoid having to write so many explanatory labels for all of your assertions.