spec/spec_helper.rb in search_flip-2.0.0.beta3 vs spec/spec_helper.rb in search_flip-2.0.0.beta4

- old
+ new

@@ -86,10 +86,14 @@ def self.type_name "comments" end + def self.index_name + "comments" + end + def self.model Comment end def self.serialize(comment) @@ -134,10 +138,14 @@ def self.type_name "products" end + def self.index_name + "products" + end + def self.model Product end def self.serialize(product) @@ -170,9 +178,13 @@ } } end def self.type_name + "test" + end + + def self.index_name "test" end end TestIndex.delete_index if TestIndex.index_exists?