Skip to content

Instantly share code, notes, and snippets.

@dje
Created July 1, 2009 23:48
Show Gist options
  • Save dje/139160 to your computer and use it in GitHub Desktop.
Save dje/139160 to your computer and use it in GitHub Desktop.
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