Created
July 1, 2009 23:48
-
-
Save dje/139160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.dirname(__FILE__) + '/helper' | |
class UriEncodeTest < Test::Unit::TestCase | |
it "responds with a percent-encoded encoded slash" do | |
mock_app { | |
get '/:encoded' do | |
params[:encoded] | |
end | |
} | |
get "/%2F" | |
assert ok? | |
assert_equal "/", body | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment