test/test_kanoko.rb in kanoko-0.0.2 vs test/test_kanoko.rb in kanoko-0.0.3
- old
+ new
@@ -26,10 +26,10 @@
end
def test_url_for_with_default_hash_proc
change_hash_proc(proc{ "aaa" }) do
assert_equal "http://example.com/aaa/test_func/test_args/test_path", Kanoko.url_for(:test_func, "test_args", "test_path")
- assert_equal "http://example.com/aaa/test_func/%2F%3F-_%3D%21%40%23%3C%3E%5C/%2F%3F-_%3D%21%40%23%3C%3E%5C", Kanoko.url_for(:test_func, "/?-_=!@#<>\\", "/?-_=!@#<>\\")
+ assert_equal "http://example.com/aaa/test_func/%2F%3F-_%3D%21%40%23%3C%3E%5C//?-_=!@#<>\\", Kanoko.url_for(:test_func, "/?-_=!@#<>\\", "/?-_=!@#<>\\")
end
end
def test_make_hash
change_hash_proc(proc{ "bbb" }) do