Prevent a warning "Expected ... to define AutoloadTest but it didn't"
related: [Bugs #18813] and eca31d24d606a73def3674938112dc3c5b79c445
This commit is contained in:
parent
8d689294d0
commit
078db98da4
@ -150,6 +150,7 @@ p Foo::Bar
|
||||
end
|
||||
|
||||
def test_nameerror_when_autoload_did_not_define_the_constant
|
||||
verbose_bak, $VERBOSE = $VERBOSE, nil
|
||||
Tempfile.create(['autoload', '.rb']) {|file|
|
||||
file.puts ''
|
||||
file.close
|
||||
@ -162,6 +163,8 @@ p Foo::Bar
|
||||
remove_autoload_constant
|
||||
end
|
||||
}
|
||||
ensure
|
||||
$VERBOSE = verbose_bak
|
||||
end
|
||||
|
||||
def test_override_autoload
|
||||
|
Loading…
x
Reference in New Issue
Block a user