Sha256: cebdd0c351ff1b8d68effa8412c560b28e4ef50447b68b2ac5b861e658d3b7b8
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
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") 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
searchkick-2.2.1 | test/errors_test.rb |
searchkick-2.2.0 | test/errors_test.rb |