Skip to content

Commit 778dc42

Browse files
aidanharanAidan Haran
andauthored
Original Rails test fails on Windows CI because the dump file was not being binary read (#922)
Co-authored-by: Aidan Haran <aharan@fusioneer.com>
1 parent 1cc444b commit 778dc42

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,16 @@ def test_does_not_duplicate_optimizer_hints_on_merge_coerced
12701270
query = Post.optimizer_hints("OMGHINT").merge(Post.optimizer_hints("OMGHINT")).to_sql
12711271
assert_equal expected, query
12721272
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
12731283
end
12741284
end
12751285

0 commit comments

Comments
 (0)