Sha256: 090f6fa7f31a71b5d7e87ccd1691b4b1dbea8a3f8d80b55d3b8d67fc0d098a80

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku_standard_config-0.0.2 test/rack_rewrite_test.rb
heroku_standard_config-0.0.1 test/rack_rewrite_test.rb