Sha256: f39841c4a39a1472c519e499956ad07748e954a731d8f37061c4d3378c02cfdc
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
require 'test_helper' class RedirectTest < ActionDispatch::IntegrationTest test "redirect and remove trailing slash" do get '/dummy/' assert_redirected_to '/dummy' end test "redirect and remove trailing slash while retaining query params" do get '/dummy/?foo=bar' assert_redirected_to '/dummy?foo=bar' end test "it squashes multiple slashes" do assert_raises(ActionController::RoutingError) { get '/dummy///www.evil.com/' } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heroku_standard_config-0.0.3 | test/rack_rewrite_test.rb~ |