Commit e92f68e1b9c9a3ad93d30f6de234674f1acbe047
1 parent
01afab19
Exists in
master
and in
18 other branches
Fixed flaky test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/order_test.rb
... | ... | @@ -17,7 +17,7 @@ class OrderTest < Minitest::Test |
17 | 17 | store_names ["Product A", "Product B"] |
18 | 18 | product_a = Product.where(name: "Product A").first |
19 | 19 | product_b = Product.where(name: "Product B").first |
20 | - assert_order "product", [product_a, product_b].sort_by(&:id).map(&:name), order: {id: :asc} | |
20 | + assert_order "product", [product_a, product_b].sort_by { |r| r.id.to_s }.map(&:name), order: {id: :asc} | |
21 | 21 | end |
22 | 22 | |
23 | 23 | def test_order_multiple | ... | ... |