Sha256: 50ab0ffccb8524c46b9900ec714194cba04ad265f0cc212847529fa38834201c
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
require "test_helper" module Cogy class BuiltinHelpersTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup { @routes = Engine.routes } def test_args_helper_overrides_predefined_helpers get "/cogy/cmd/args_overrides/george", cog_argv_1: "hu", cog_argv_0: "haha" assert_equal "hahahu", response.body end def test_args_with_empty_arguments get "/cogy/cmd/empty_args/george" assert_equal "true", response.body end def test_args get "/cogy/cmd/add/george", cog_argv_0: 1, cog_argv_1: 2 assert_equal "3", response.body end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cogy-0.2.1 | test/integration/builtin_helpers_test.rb |
cogy-0.2.0 | test/integration/builtin_helpers_test.rb |