From 1b6916ee5911912a4a8f6481a9e3af9ed2e98b64 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 3 Aug 2013 20:06:17 -0700 Subject: [PATCH] Randomize document insertion in tests --- test/test_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 407ba8d..0c4887d 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -70,7 +70,7 @@ class MiniTest::Unit::TestCase protected def store(documents) - documents.each do |document| + documents.shuffle.each do |document| Product.create!(document) end Product.index.refresh -- libgit2 0.21.0