test/integration/builtin_helpers_test.rb in cogy-0.3.0 vs test/integration/builtin_helpers_test.rb in cogy-0.4.0

- old
+ new

@@ -5,20 +5,20 @@ include Engine.routes.url_helpers setup { @routes = Engine.routes } def test_args_helper_overrides_predefined_helpers - post "/cogy/cmd/args_overrides/george", COG_ARGV_1: "hu", COG_ARGV_0: "haha" + cmd :args_overrides, COG_ARGV_1: "hu", COG_ARGV_0: "haha" assert_equal "hahahu", response.body end def test_args_with_empty_arguments - post "/cogy/cmd/empty_args/george" + cmd :empty_args assert_equal "true", response.body end def test_args - post "/cogy/cmd/add/george", COG_ARGV_0: 1, COG_ARGV_1: 2 + cmd :add, COG_ARGV_0: 1, COG_ARGV_1: 2 assert_equal "3", response.body end end end