<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 31 July 2014 10:51, Frederick Cheung <span dir="ltr"><<a href="mailto:frederick.cheung@gmail.com" target="_blank">frederick.cheung@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1c2" class="a3s" style="overflow:hidden">Which is why rspec 3 removed be_true (and replaced it with be_truthy)<br>
</div></blockquote></div><br><div>In our own tests, when we're unit testing methods that are expected to return a Boolean, we use `eq(true)`, etc. to guarantee we're getting a genuine Boolean result back. If we're using Ruby's "anything non-nil evaluates to true" in conditionals, etc., we're more concerned with the higher-level outcome of those decision tress. So be_truthy and be_falsy shouldn't appear in our test suite. </div>
<div><br></div><div>...In theory, at least. In practice, I just did a quick search and a couple have snuck in after our recent upgrade from Rspec 3.0beta to release. Oopsie. </div><div><br></div>-- <div dir="ltr"><div dir="ltr">
<span style="font-family:Arial,sans-serif">Scott Matthewman</span><br style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif">Lead Developer</span><div><br></div><div><div><span style="font-family:Arial,sans-serif">T: </span>+ 44 20 7323 0053<br style="font-family:Arial,sans-serif">
<span style="font-family:Arial,sans-serif">M: </span>+ 44 781 844 5270<br style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif">E: <a href="mailto:scott@evvnt.com" target="_blank">scott@evvnt.com</a></span><br style="font-family:Arial,sans-serif">
<span style="font-family:Arial,sans-serif">W: </span><a href="http://evvnt.com/" style="color:rgb(17,85,204);font-family:Arial,sans-serif" target="_blank">evvnt.com</a><br style="font-family:Arial,sans-serif"><span style="font-family:Arial,sans-serif">L: </span><a href="http://uk.linkedin.com/in/scottmatthewman/" target="_blank">uk.linkedin.com/in/scottmatthewman/</a><br>
</div><div><span style="font-family:Arial,sans-serif"><br></span></div><div><b>Superior Event Marketing -</b> You submit once, we submit everywhere that matters<br><div><font face="arial, helvetica, sans-serif"><a href="http://evvnt.com/" style="color:rgb(17,85,204);font-weight:bold" target="_blank"><font color="#3d85c6">evvnt</font></a><b> | </b><a href="http://www.linkedin.com/company/evvnt" style="color:rgb(17,85,204);font-weight:bold" target="_blank"><font color="#3d85c6">linkedin</font></a><b> | </b><b><a href="https://www.facebook.com/evvnt" style="color:rgb(17,85,204)" target="_blank"><font color="#3d85c6">facebook</font></a></b> <b>| </b><a href="https://twitter.com/evvnt" style="color:rgb(17,85,204);font-weight:bold" target="_blank"><font color="#3d85c6">twitter</font></a></font></div>
</div><div><br></div><div>What do we do: <a href="http://youtu.be/pqoZ8ge1PH4" style="color:rgb(17,85,204)" target="_blank">http://youtu.be/pqoZ8ge1PH4</a><br><div>Testimonials: <a href="http://evvnt.com/testimonials/" target="_blank">http://evvnt.com/testimonials/</a></div>
Media Pack: <a href="http://evvnt.com/conference-exhibition-media-pack-event-marketing" style="color:rgb(17,85,204)" target="_blank">http://evvnt.com/conference-exhibition-media-pack-event-marketing</a><br>Case Study: <a href="http://evvnt.com/2013/03/case-study-ubm-canon/" style="color:rgb(17,85,204)" target="_blank">http://evvnt.com/2013/03/case-study-ubm-canon/</a><br>
</div><div><br></div><div><font size="1"><span style="font-family:Arial,sans-serif"><b>evvnt Ltd</b> :: London Office: 83 Great Titchfield Street, London, W1W 6RH </span><br><span style="font-family:Arial,sans-serif">Registered in England, No: 8062041 - VAT 135069029 </span><br style="font-family:Arial,sans-serif">
<span style="font-family:Arial,sans-serif">Registered Office: Unit 11 Hove Business Centre, Fonthill Road, Hove, East Sussex, BN3 6HA, UK </span><br style="font-family:Arial,sans-serif"><br style="font-family:Arial,sans-serif">
<span style="font-family:Arial,sans-serif">This message, its contents and any attachments are private, confidential and may contain information that is subject to copyright and/or legal privilege. You may not disclose, use or disseminate all or part of this message without our prior written consent. If you are not the intended recipient, please notify us immediately by replying to this message and then delete it from your system.</span></font></div>
</div></div></div>
</div></div>