Skip to content

Commit 7dd27be

Browse files
committed
Silence warnings on require for this test
The schema cache dump throws a warning and is supposed to. But we don't want to see the warnings in test output, so silence them.
1 parent e446ef8 commit 7dd27be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

railties/test/application/initializers/frameworks_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ def show
262262
RUBY
263263

264264
with_unhealthy_database do
265-
require "#{app_path}/config/environment"
265+
silence_warnings do
266+
require "#{app_path}/config/environment"
267+
end
266268

267269
assert_not_nil ActiveRecord::Base.connection_pool.schema_cache
268270

0 commit comments

Comments
 (0)