-
Notifications
You must be signed in to change notification settings - Fork 68
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
Authenticable #authenticate_with_token spec passes without writing any code #62
Comments
It is probably not the btes approach, in my mind I thought it was being tested indirectly by stubbing everything and once the call arrives, everything just will work, any thoughts on this? |
The call never arrives though? |
This worked. Creating an anonymous controller allowed me to test whether the method existed, and returned the correct response. |
That is nice, I'll include that on the second edition version of the book and make the reference to you ;) |
Sweet! Much appreciated. |
Specs are passing regardless of writing any code for the spec. I'm wondering why stub out the entire workings of the function, but not even call the function that is being tested.
The text was updated successfully, but these errors were encountered: