We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc444b commit 778dc42Copy full SHA for 778dc42
test/cases/coerced_tests.rb
@@ -1270,6 +1270,16 @@ def test_does_not_duplicate_optimizer_hints_on_merge_coerced
1270
query = Post.optimizer_hints("OMGHINT").merge(Post.optimizer_hints("OMGHINT")).to_sql
1271
assert_equal expected, query
1272
end
1273
+
1274
+ # Original Rails test fails on Windows CI because the dump file was not being binary read.
1275
+ coerce_tests! :test_marshal_load_legacy_relation
1276
+ def test_marshal_load_legacy_relation_coerced
1277
+ path = File.expand_path(
1278
+ "support/marshal_compatibility_fixtures/legacy_relation.dump",
1279
+ ARTest::SQLServer.root_activerecord_test
1280
+ )
1281
+ assert_equal 11, Marshal.load(File.binread(path)).size
1282
+ end
1283
1284
1285
0 commit comments