mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated constant MissingSourceFIle
This commit is contained in:
parent
b93a257186
commit
8e43fc5ace
3 changed files with 4 additions and 10 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
* Remove deprecated constant `MissingSourceFile`
|
||||||
|
|
||||||
|
*Andrew White*
|
||||||
|
|
||||||
* Remove deprecated methods `Module.qualified_const_defined?`,
|
* Remove deprecated methods `Module.qualified_const_defined?`,
|
||||||
`Module.qualified_const_get` and `Module.qualified_const_set`
|
`Module.qualified_const_get` and `Module.qualified_const_set`
|
||||||
|
|
||||||
|
|
|
@ -27,5 +27,3 @@ class LoadError
|
||||||
location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze)
|
location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
MissingSourceFile = ActiveSupport::Deprecation::DeprecatedConstantProxy.new("MissingSourceFile", "LoadError")
|
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
require "abstract_unit"
|
require "abstract_unit"
|
||||||
require "active_support/core_ext/load_error"
|
require "active_support/core_ext/load_error"
|
||||||
|
|
||||||
class TestMissingSourceFile < ActiveSupport::TestCase
|
|
||||||
def test_it_is_deprecated
|
|
||||||
assert_deprecated do
|
|
||||||
MissingSourceFile.new
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TestLoadError < ActiveSupport::TestCase
|
class TestLoadError < ActiveSupport::TestCase
|
||||||
def test_with_require
|
def test_with_require
|
||||||
assert_raise(LoadError) { require 'no_this_file_don\'t_exist' }
|
assert_raise(LoadError) { require 'no_this_file_don\'t_exist' }
|
||||||
|
|
Loading…
Reference in a new issue