Commit 9d00b2e6781b622f2afcc795c373ef76cc87673d

Authored by Rati Iamsopha
Committed by Andrew Kane
1 parent 6e8e2f80

fix bulk index without IDs ankane/searchkick#907 (#908)

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/errors_test.rb
@@ -2,8 +2,8 @@ require_relative "test_helper" @@ -2,8 +2,8 @@ require_relative "test_helper"
2 2
3 class ErrorsTest < Minitest::Test 3 class ErrorsTest < Minitest::Test
4 def test_bulk_import_raises_error 4 def test_bulk_import_raises_error
5 - valid_dog = Product.new(name: "2016-01-02")  
6 - invalid_dog = Product.new(name: "Ol' One-Leg") 5 + valid_dog = Product.create(name: "2016-01-02")
  6 + invalid_dog = Product.create(name: "Ol' One-Leg")
7 index = Searchkick::Index.new "dogs", mappings: { 7 index = Searchkick::Index.new "dogs", mappings: {
8 dog: { 8 dog: {
9 properties: { 9 properties: {