Is your feature request related to a problem? Please describe.
If I add a guard clause, some of my event tests will fail if the guard clause isn't returning true. I either have to mock the guard to return true or add multiple scenarios to test for each guard state.
Describe the solution you'd like
RSpec syntax along the lines of .with_guard(:my_guard) (or something similar to https://github.com/jdliss/shoulda-callback-matchers).
Describe alternatives you've considered
I either have to mock the guard to return true or add multiple scenarios to test for each guard state.
Additional context
n/a
Is your feature request related to a problem? Please describe.
If I add a guard clause, some of my event tests will fail if the guard clause isn't returning true. I either have to mock the guard to return true or add multiple scenarios to test for each guard state.
Describe the solution you'd like
RSpec syntax along the lines of
.with_guard(:my_guard)(or something similar to https://github.com/jdliss/shoulda-callback-matchers).Describe alternatives you've considered
I either have to mock the guard to return true or add multiple scenarios to test for each guard state.
Additional context
n/a