Class: ElasticRecord::Index::MappingTypeTest

Inherits:
MiniTest::Test
  • Object
show all
Defined in:
lib/elastic_record/index/mapping_type_test.rb

Instance Method Summary collapse

Instance Method Details

#test_defaultObject



4
5
6
# File 'lib/elastic_record/index/mapping_type_test.rb', line 4

def test_default
  assert_equal '_doc', index.mapping_type
end

#test_writerObject



8
9
10
11
# File 'lib/elastic_record/index/mapping_type_test.rb', line 8

def test_writer
  index.mapping_type = 'widget'
  assert_equal 'widget', index.mapping_type
end