diff options
author | Akira Matsuda <ronnie@dio.jp> | 2015-04-25 08:42:28 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2015-04-25 17:07:54 +0900 |
commit | 9b3fa766d4d132d422aa0768f22e903d6a2fbfb6 (patch) | |
tree | f9f73e8254f41d593609d1e91f2cb4344b04c437 /railties/test | |
parent | 9b36cf0fa4cbdcb2e2072ef1b8179a98b13efce3 (diff) | |
download | rails-9b3fa766d4d132d422aa0768f22e903d6a2fbfb6.tar.gz rails-9b3fa766d4d132d422aa0768f22e903d6a2fbfb6.tar.bz2 rails-9b3fa766d4d132d422aa0768f22e903d6a2fbfb6.zip |
Why do we add a top-level constant here?
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/path_generation_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/test/path_generation_test.rb b/railties/test/path_generation_test.rb index e3dfcdfb7d..d22374a1ff 100644 --- a/railties/test/path_generation_test.rb +++ b/railties/test/path_generation_test.rb @@ -4,18 +4,16 @@ require 'active_support/core_ext/object/json' require 'rails' require 'rails/application' -ROUTING = ActionDispatch::Routing - class PathGenerationTest < ActiveSupport::TestCase attr_reader :app - class TestSet < ROUTING::RouteSet + class TestSet < ActionDispatch::Routing::RouteSet def initialize(block) @block = block super() end - class Dispatcher < ROUTING::RouteSet::Dispatcher + class Dispatcher < ActionDispatch::Routing::RouteSet::Dispatcher def initialize(defaults, set, block) super(defaults) @block = block |