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
Now I know the problem. Transpec checks if a stub is RSpec's one or not only when the stub is run. However, with your code, I guess the argument user was always passed and the Factory.stub(:user) had never been run.
So, I think I'll let Transpec have a static whitelist.
Here is the converted code giving the error:
Here is the original code
The text was updated successfully, but these errors were encountered: