diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-20 17:33:31 -0500 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2017-07-20 17:33:31 -0500 |
commit | 1a9026b485b9b1da0f34c526d4c901406074c508 (patch) | |
tree | 8f3b8eae6786a35fc934a04ed9234ec95b90eee3 /test/test_helper.rb | |
parent | dda013050fe559e2e9432ae836c1239eac48fbce (diff) | |
download | rails-1a9026b485b9b1da0f34c526d4c901406074c508.tar.gz rails-1a9026b485b9b1da0f34c526d4c901406074c508.tar.bz2 rails-1a9026b485b9b1da0f34c526d4c901406074c508.zip |
Extract routes.rb to engine location for auto configuration
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 878ce8391c..6081fc1bcf 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -34,17 +34,6 @@ class ActiveSupport::TestCase end end -require "action_controller" -require "action_controller/test_case" - -class ActionController::TestCase - Routes = ActionDispatch::Routing::RouteSet.new.tap do |routes| - routes.draw do - eval(File.read(File.expand_path("../../lib/active_storage/routes.rb", __FILE__))) - end - end -end - require "active_storage/attached" ActiveRecord::Base.send :extend, ActiveStorage::Attached::Macros |