I have Rails app with a helper method "current_user_permitted?" in app/helpers/application_helper.rb Since it has some complex dependencies, I want to mock it for my Rspec integration tests.
The question is: On what class do I need to create a mock, so that I can force this helper to always return true? Thanks in advance -- You received this message because you are subscribed to the Google Groups "rspec" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rspec/-/dSOQ4tdqr_MJ. For more options, visit https://groups.google.com/groups/opt_out.
