diff --git a/test/failure_app_test.rb b/test/failure_app_test.rb index 194a4022..432c88a0 100644 --- a/test/failure_app_test.rb +++ b/test/failure_app_test.rb @@ -12,7 +12,9 @@ class FailureTest < ActiveSupport::TestCase routes = ActionDispatch::Routing::RouteSet.new routes.draw do - root to: 'foo#bar', constraints: { subdomain: 'sub' } + scope subdomain: 'sub' do + root to: 'foo#bar' + end end include routes.url_helpers diff --git a/test/rails_app/config/routes.rb b/test/rails_app/config/routes.rb index bda678f3..0e710b49 100644 --- a/test/rails_app/config/routes.rb +++ b/test/rails_app/config/routes.rb @@ -66,7 +66,7 @@ Rails.application.routes.draw do devise_for :homebase_admin, class_name: "Admin", path: "homebase" end - constraints(subdomain: 'sub') do + scope(subdomain: 'sub') do devise_for :subdomain_users, class_name: "User", only: [:sessions] end