You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require “rubygems”
require “rack”
require “rack/test”
class LegacyRoutesTest < Rack::Unit::TestCase
def setup
@app = LegacyRoutes
end
def test_should_redirect_to_project_page
get “/pages/sashimi”
assert_redirected_to “/projects/sashimi”
end
def test_should_return_not_found
get “/pages/unknown”
assert_response :not_found
end
end