Looking to get some opinions here.
What is the best way to check boolean values with RSPEC I have seen it done a few different ways:
myvar.should == true
myvar.should be true
myvar.should be
Also I usually only care about the duck value, that is, if it evaluates to true / false then I don’t care what its actual value is…
Here’s the difference between “== true” and “be(true)”:
Which basically means that if you only care if a value evaluates to true then you want to use == true