From a52bd93b308b238ea8b239abf901ada91aca910a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 30 Aug 2021 08:06:44 -0700 Subject: [PATCH] Improved test [skip ci] --- test/index_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/index_test.rb b/test/index_test.rb index af7ef5f..d20f114 100644 --- a/test/index_test.rb +++ b/test/index_test.rb @@ -74,12 +74,11 @@ class IndexTest < Minitest::Test # TODO move def test_filterable - # skip for 5.0 since it throws - # Cannot search on field [alt_description] since it is not indexed. store [{name: "Product A", alt_description: "Hello"}] - assert_raises(Searchkick::InvalidQueryError) do + error = assert_raises(Searchkick::InvalidQueryError) do assert_search "*", [], where: {alt_description: "Hello"} end + assert_match "Cannot search on field [alt_description] since it is not indexed", error.message end def test_filterable_non_string -- libgit2 0.21.0