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
in the process of implementing a rspec test for my controller, i need to stub a shopping cart, so that my "method" doesn't fail because of an empty cart. Is that possible? I've been trying to do something like
Hello,
in the process of implementing a rspec test for my controller, i need to stub a shopping cart, so that my "method" doesn't fail because of an empty cart. Is that possible? I've been trying to do something like
but this give me errors like " CartItem does not implement #quantity". Surely i am doing something wrong. Appreciate the help!!
The text was updated successfully, but these errors were encountered: