We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fa7e4 commit 025aeaeCopy full SHA for 025aeae
test/relation_test.rb
@@ -72,6 +72,10 @@ def test_respond_to
72
73
def test_to_yaml
74
store_names ["Product A", "Product B"]
75
- assert_equal Product.all.to_yaml, Product.search("product").to_yaml
+ 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
80
end
81
0 commit comments