Skip to content
Browse files

Merge pull request #15399 from tgxworld/remove_todo_router_test

Remove TODO.
  • Loading branch information...
2 parents fc63e80 + b1bc553 commit 03ee41948d53457f8147fce87acee1dcbf8abb8f @guilleiguaran guilleiguaran committed May 28, 2014
Showing with 1 addition and 11 deletions.
  1. +1 −11 actionpack/test/journey/router_test.rb
View
12 actionpack/test/journey/router_test.rb
@@ -4,18 +4,10 @@
module ActionDispatch
module Journey
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
def setup
- @app = StubDispatcher.new
+ @app = Routing::RouteSet::Dispatcher.new({})
@routes = Routes.new
@router = Router.new(@routes)
@formatter = Formatter.new(@routes)
@@ -566,8 +558,6 @@ def add_routes router, paths
end
end
- RailsEnv = Struct.new(:env)
-
def rails_env env, klass = ActionDispatch::Request
klass.new env
end

0 comments on commit 03ee419

Please sign in to comment.
Something went wrong with that request. Please try again.