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
3 4 5 |
# File 'lib/simple_workflow/test_helper.rb', line 3 def add_stored_detour(location = { controller: :bogus, action: :location }) @request.session[:detours] = [location] end |