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
{{ message }}
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.
Technically speaking, we could also use the more concise expect(...).to be and expect(...).to_not be as well.
I am not sure what this sentence means. Do you mean you can change to be_falsey to to_not be_truethy , like this?
describe"POST #create"docontext"with valid attributes"do# ...it"creates a new contact"doexpect(Contact.exists?(assigns[:contact])).tobe_truthyendendcontext"with invalid attributes"do# ...it"does not save the new contact"doexpect(Contact.exists?(contact)).to_notbe_truthyend# ...endend
If so, I prefer to be_falsey because it is more readable for me.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not sure what this sentence means. Do you mean you can change
to be_falsey
toto_not be_truethy
, like this?If so, I prefer
to be_falsey
because it is more readable for me.The text was updated successfully, but these errors were encountered: