Module: SimpleWorkflow::TestHelper
- Defined in:
- lib/simple_workflow/test_helper.rb
Overview
Utility methods to ease testing.
Instance Method Summary collapse
Instance Method Details
#add_stored_detour(location = { controller: :bogus, action: :location }) ⇒ Object
5 6 7 |
# File 'lib/simple_workflow/test_helper.rb', line 5 def add_stored_detour(location = { controller: :bogus, action: :location }) @request.session[:detours] = [location] end |