Skip to content

Commit 4fe36df

Browse files
committed
Fixed CI
1 parent ceb06fa commit 4fe36df

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/load_test.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ def test_default
55
store_names ["Product A"]
66
product = Product.search("product").first
77
assert_kind_of Product, product
8-
assert_match "#<Product id: ", product.inspect
8+
if mongoid?
9+
assert_match "#<Product _id: ", product.inspect
10+
else
11+
assert_match "#<Product id: ", product.inspect
12+
end
913
assert_equal "Product A", product.name
1014
assert_equal "Product A", product[:name]
1115
assert_equal "Product A", product["name"]

0 commit comments

Comments
 (0)