Hi All,
I'm new to SimpleCov, so apologise if my question is a trivial one. So: I'm using the "unless" idiom extensively in my Ruby code in the following way
msg << "Author=#{author}" uness author.nil?
If I run SimpleCov on this line, it always reports a "hit", independent from author. I believe this is because the "unless" is always evaluated. But I want a "hit" only if author is not nil. Could you please help me how to reach this? I know I could split the code in multiple lines to avoid ambiguity, but this is the last thing I want to do. Is there any other solution?
Thanks,
Jozsef