require "test_helper" module Cogy class HelpersTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup { @routes = Engine.routes } def test_custom_helpers_can_access_default_helpers get "/cogy/cmd/foohelper/george", cogy_foo: "bar" assert_equal "bar", response.body end def test_custom_helper_with_arguments get "/cogy/cmd/titleize/george" assert_equal "This Should Be Titleized", response.body end end end