From 633091c26345a78318fb70adbc18019927f8762c Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Sat, 29 Oct 2022 16:22:08 -0500 Subject: [PATCH] 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 ``` --- railties/test/application/initializers/frameworks_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index f77223a889c..848519bbc13 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -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