<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">On 31 July 2014 at 10:52:02, Frederick Cheung (<a href="mailto:frederick.cheung@gmail.com">frederick.cheung@gmail.com</a>) wrote:</div> <div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span><div><div></div><div>On 31 July 2014 at 10:38:22, Kerry Buckley (kerryjbuckley@gmail.com) wrote:<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> I’ve never been particularly offended by rspec’s “magic”, but looking at your example<span class="Apple-converted-space"> </span><br>> another potential cause of confusion occurred to me, namely that these two expectations<span class="Apple-converted-space"> </span><br> > are not equivalent:<span class="Apple-converted-space"> </span><br>><span class="Apple-converted-space"> </span><br>> expect(foo).to be_true # passes for anything truthy<span class="Apple-converted-space"> </span><br>> expect(foo).to be true # passes only if TrueClass === foo<span class="Apple-converted-space"> </span><br><br>Which is why rspec 3 removed be_true (and replaced it with be_truthy) </div></div></span></blockquote></div><p>Yeah, should have checked that the version of rspec in my default gemset was up-to-date when I tried it out :-/</p><p>Kerry</p><div></div></body></html>