Sha256: c2dc10558b3f71506e3ed8a4b4a119e920ece933ce87b55036881b11a1445c2b
Contents?: true
Size: 486 Bytes
Versions: 4
Compression:
Stored size: 486 Bytes
Contents
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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cogy-0.2.1 | test/integration/helpers_test.rb |
cogy-0.2.0 | test/integration/helpers_test.rb |
cogy-0.1.1 | test/integration/helpers_test.rb |
cogy-0.1.0 | test/integration/helpers_test.rb |