Permalink
Browse files

Fix ruby warnings

This fixes following warnings:

```
test/dependencies_test.rb:287: warning: possibly useless use of :: in void context
test/dependencies_test.rb:300: warning: possibly useless use of a constant in void context
```
  • Loading branch information...
y-yagi committed Nov 22, 2018
1 parent 47ab6b3 commit f8bd01cdd9a0ce77cd51b43f82f85df33df762fb
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/dependencies_test.rb
@@ -284,7 +284,7 @@ def test_module_with_nested_inline_class
def test_module_with_nested_class_requiring_lib_class
with_autoloading_fixtures do
ModuleFolder::NestedWithRequire
_ = ModuleFolder::NestedWithRequire # assignment to silence parse-time warning "possibly useless use of :: in void context"
assert defined?(ModuleFolder::LibClass)
assert_not ActiveSupport::Dependencies.autoloaded_constants.include?("ModuleFolder::LibClass")
@@ -297,7 +297,7 @@ def test_module_with_nested_class_requiring_lib_class
def test_module_with_nested_class_and_parent_requiring_lib_class
with_autoloading_fixtures do
NestedWithRequireParent
_ = NestedWithRequireParent # assignment to silence parse-time warning "possibly useless use of a constant in void context"
assert defined?(ModuleFolder::LibClass)
assert_not ActiveSupport::Dependencies.autoloaded_constants.include?("ModuleFolder::LibClass")

0 comments on commit f8bd01c

Please sign in to comment.