-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add warning about be_false being falsey in rspec 1.3 #15
Conversation
💯 agree |
Looks good 👍 |
Nice gotcha |
Suggestion, for the end: |
@dncrht Do you know if |
For reference I also found a PR for the addition of |
@krisleech nope: a.should be(b) # passes if a.equal?(b)
a.should eq(b) # passes if a == b Keeping this in mind: a.equal?(b) # object identity - a and b refer to the same object
a.eql?(b) # object equivalence - a and b have the same value
a == b # object equivalence - a and b have the same value with type conversions Thanks for asking! (we all will learn something today) |
I didn't realise Do you think in this case we should just recommend one, either |
Indeed
I'd say so, but I'm open to suggestions |
👍 I have no preference over |
+1 for |
Done 😄 Thanks @dncrht |
Add warning about be_false being falsey in rspec 1.3
No description provided.