From 436fc423a79413dca21348c28c701282c9f5bc75 Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Tue, 12 May 2020 16:26:07 +0100 Subject: [PATCH] Coerce test on Windows --- test/cases/coerced_tests.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index 9a82443ca..5b3129f81 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -1627,3 +1627,12 @@ class FixturesTest < ActiveRecord::TestCase # Skip test on Windows. Skip can be removed when Rails PR https://github.com/rails/rails/pull/39234 has been merged. coerce_tests! :test_binary_in_fixtures if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ end + + + + +class ReloadModelsTest < ActiveRecord::TestCase + # Skip test on Windows. The number of arguements passed to `IO.popen` in + # `activesupport/lib/active_support/testing/isolation.rb` exceeds what Windows can handle. + coerce_tests! :test_has_one_with_reload if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ +end