mirror of https://github.com/rails/rails
Fix "possibly useless use of a constant" warnings
This fixes two warnings like the following when running `rails/railties/test/application/initializers/frameworks_test.rb`: ``` warning: possibly useless use of a constant in void context ```
This commit is contained in:
parent
bb96ea70cb
commit
633091c263
|
@ -361,8 +361,8 @@ module ApplicationTests
|
||||||
|
|
||||||
require "#{app_path}/config/environment"
|
require "#{app_path}/config/environment"
|
||||||
|
|
||||||
A
|
assert A
|
||||||
M
|
assert M
|
||||||
Post.current_scope = Post
|
Post.current_scope = Post
|
||||||
assert_not_nil ActiveRecord::Scoping::ScopeRegistry.current_scope(Post) # precondition
|
assert_not_nil ActiveRecord::Scoping::ScopeRegistry.current_scope(Post) # precondition
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue