You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are sure that the subject must be true (1) or false (0), we should be able to use the be(true) and be(false) syntax to match the exact value, instead of matching non-zero for "truthy" and zero for "falsey". We should be able to do this by overloading the Be#match template method with boolean parameter type.
The text was updated successfully, but these errors were encountered:
Sometimes it's more readable to say
than to say
expect(...).to(be_truthy) expect(...).to(be_falsey)
When we are sure that the subject must be true (1) or false (0), we should be able to use the be(true) and be(false) syntax to match the exact value, instead of matching non-zero for "truthy" and zero for "falsey". We should be able to do this by overloading the Be#match template method with boolean parameter type.
The text was updated successfully, but these errors were encountered: