From 698c1a34eaf09dc0f7906cbecc7f6d07edb6dae3 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 6 Apr 2015 01:35:07 +0200 Subject: [PATCH] Fixed condition. --- test/integration/elasticsearch_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/elasticsearch_test.rb b/test/integration/elasticsearch_test.rb index 56d214431..c3b665c26 100644 --- a/test/integration/elasticsearch_test.rb +++ b/test/integration/elasticsearch_test.rb @@ -260,7 +260,7 @@ class ElasticsearchTest < ActiveSupport::TestCase ) assert(!result.empty?, 'result should not be empty') assert(result[0], 'record 1') - assert(!result[0], 'record 2') + assert(!result[1], 'record 2') assert_equal(result[0].id, customer1.id) # search as customer1