module SimpleWorkflow::TestHelper
Utility methods to ease testing.
Public Instance Methods
add_stored_detour(location = { controller: :bogus, action: :location })
click to toggle source
# File lib/simple_workflow/test_helper.rb, line 5 def add_stored_detour(location = { controller: :bogus, action: :location }) @request.session[:detours] = [location] end