Fix deprecation warnings on Rails 6

takes into account suggestions from @bf4
This commit is contained in:
Kyle Keesling
2019-02-26 23:26:24 -05:00
parent bb0f9d088d
commit 6fbeb9a93e
2 changed files with 15 additions and 2 deletions

View File

@@ -125,7 +125,12 @@ module ActionController
tests Api::V3::LookupTestController
setup do
@test_namespace = self.class.parent
@test_namespace =
if Module.method_defined?(:module_parent)
self.class.module_parent
else
self.class.parent
end
end
test 'uses request headers to determine the namespace' do