test/index_test.rb in searchkick-1.5.0 vs test/index_test.rb in searchkick-1.5.1

- old
+ new

@@ -91,21 +91,21 @@ ensure Product.reindex end def test_missing_index - assert_raises(Searchkick::MissingIndexError) { Product.search "test", index_name: "not_found" } + assert_raises(Searchkick::MissingIndexError) { Product.search("test", index_name: "not_found") } end def test_unsupported_version raises_exception = ->(_) { raise Elasticsearch::Transport::Transport::Error, "[500] No query registered for [multi_match]" } Searchkick.client.stub :search, raises_exception do assert_raises(Searchkick::UnsupportedVersionError) { Product.search("test") } end end - def test_invalid_query - assert_raises(Searchkick::InvalidQueryError) { Product.search(query: {boom: true}) } + def test_invalid_body + assert_raises(Searchkick::InvalidQueryError) { Product.search(body: {boom: true}) } end def test_transaction skip unless defined?(ActiveRecord) Product.transaction do