spec/spec_helper.rb in search_flip-2.0.0.beta7 vs spec/spec_helper.rb in search_flip-2.0.0.beta8

- old
+ new

@@ -112,29 +112,27 @@ include SearchFlip::Index def self.mapping if ProductIndex.connection.version.to_i >= 5 { - products: { - properties: { - category: { - type: "text", - fielddata: true - }, - title: { - type: "text", - fielddata: true - }, - description: { - type: "text", - fielddata: true - } + properties: { + category: { + type: "text", + fielddata: true + }, + title: { + type: "text", + fielddata: true + }, + description: { + type: "text", + fielddata: true } } } else - { products: {} } + { } end end def self.type_name "products" @@ -169,13 +167,11 @@ class TestIndex include SearchFlip::Index def self.mapping { - test: { - properties: { - test_field: { type: "date" } - } + properties: { + test_field: { type: "date" } } } end def self.type_name