Skip to content

Commit 025aeae

Browse files
committed
Fixed CI
1 parent f8fa7e4 commit 025aeae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/relation_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ def test_respond_to
7272

7373
def test_to_yaml
7474
store_names ["Product A", "Product B"]
75-
assert_equal Product.all.to_yaml, Product.search("product").to_yaml
75+
if mongoid?
76+
assert_equal Product.all.to_a.to_yaml, Product.search("product").to_yaml
77+
else
78+
assert_equal Product.all.to_yaml, Product.search("product").to_yaml
79+
end
7680
end
7781
end

0 commit comments

Comments
 (0)