test/integration/helpers_test.rb in cogy-0.3.0 vs test/integration/helpers_test.rb in cogy-0.4.0
- old
+ new
@@ -5,15 +5,15 @@
include Engine.routes.url_helpers
setup { @routes = Engine.routes }
def test_custom_helpers_can_access_default_helpers
- post "/cogy/cmd/foohelper/george", cog_foo: "bar"
+ cmd :foohelper, cog_foo: "bar"
assert_equal "bar", response.body
end
def test_custom_helper_with_arguments
- post "/cogy/cmd/titleize/george"
+ cmd :titleize
assert_equal "This Should Be Titleized", response.body
end
end
end