Sha256: 030c6030480f99702eb407c005ead13382b578736c46b991c53dfe799523f0f8
Contents?: true
Size: 475 Bytes
Versions: 14
Compression:
Stored size: 475 Bytes
Contents
require_relative "test_helper" class ErrorsTest < Minitest::Test def test_bulk_import_raises_error valid_dog = Dog.new(name: "2016-01-02") invalid_dog = Dog.new(name: "Ol' One-Leg") index = Searchkick::Index.new "dogs", mappings: { dog: { properties: { name: {type: "date"} } } } index.store valid_dog assert_raises(Searchkick::ImportError) do index.bulk_index [valid_dog, invalid_dog] end end end
Version data entries
14 entries across 14 versions & 1 rubygems