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:
Jonathan Hefner 2022-10-29 16:22:08 -05:00
parent bb96ea70cb
commit 633091c263
1 changed files with 2 additions and 2 deletions

View File

@ -361,8 +361,8 @@ module ApplicationTests
require "#{app_path}/config/environment"
A
M
assert A
assert M
Post.current_scope = Post
assert_not_nil ActiveRecord::Scoping::ScopeRegistry.current_scope(Post) # precondition