From 9d00b2e6781b622f2afcc795c373ef76cc87673d Mon Sep 17 00:00:00 2001 From: Rati Iamsopha Date: Sat, 29 Apr 2017 14:06:26 +0700 Subject: [PATCH] fix bulk index without IDs ankane/searchkick#907 (#908) --- test/errors_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/errors_test.rb b/test/errors_test.rb index 74615a4..45a3f8a 100644 --- a/test/errors_test.rb +++ b/test/errors_test.rb @@ -2,8 +2,8 @@ require_relative "test_helper" class ErrorsTest < Minitest::Test def test_bulk_import_raises_error - valid_dog = Product.new(name: "2016-01-02") - invalid_dog = Product.new(name: "Ol' One-Leg") + valid_dog = Product.create(name: "2016-01-02") + invalid_dog = Product.create(name: "Ol' One-Leg") index = Searchkick::Index.new "dogs", mappings: { dog: { properties: { -- libgit2 0.21.0