1
0
Fork 0
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:
Andrew White 2016-11-14 11:25:52 +00:00
parent b93a257186
commit 8e43fc5ace
3 changed files with 4 additions and 10 deletions

View file

@ -1,3 +1,7 @@
* Remove deprecated constant `MissingSourceFile`
*Andrew White*
* Remove deprecated methods `Module.qualified_const_defined?`,
`Module.qualified_const_get` and `Module.qualified_const_set`

View file

@ -27,5 +27,3 @@ class LoadError
location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze)
end
end
MissingSourceFile = ActiveSupport::Deprecation::DeprecatedConstantProxy.new("MissingSourceFile", "LoadError")

View file

@ -1,14 +1,6 @@
require "abstract_unit"
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
def test_with_require
assert_raise(LoadError) { require 'no_this_file_don\'t_exist' }