1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove TODO.

This commit is contained in:
Guo Xiang Tan 2014-05-28 20:06:08 -07:00
parent 7f73b9152c
commit b1bc553385

View file

@ -4,18 +4,10 @@ require 'abstract_unit'
module ActionDispatch module ActionDispatch
module Journey module Journey
class TestRouter < ActiveSupport::TestCase class TestRouter < ActiveSupport::TestCase
# TODO : clean up routing tests so we don't need this hack
class StubDispatcher < Routing::RouteSet::Dispatcher
def initialize
super({})
end
def dispatcher?; true; end
end
attr_reader :routes attr_reader :routes
def setup def setup
@app = StubDispatcher.new @app = Routing::RouteSet::Dispatcher.new({})
@routes = Routes.new @routes = Routes.new
@router = Router.new(@routes) @router = Router.new(@routes)
@formatter = Formatter.new(@routes) @formatter = Formatter.new(@routes)
@ -566,8 +558,6 @@ module ActionDispatch
end end
end end
RailsEnv = Struct.new(:env)
def rails_env env, klass = ActionDispatch::Request def rails_env env, klass = ActionDispatch::Request
klass.new env klass.new env
end end