spec/elasticsearch/model/response/aggregations_spec.rb in elasticsearch-model-7.2.1 vs spec/elasticsearch/model/response/aggregations_spec.rb in elasticsearch-model-8.0.0.pre
- old
+ new
@@ -20,11 +20,10 @@
describe Elasticsearch::Model::Response::Aggregations do
before(:all) do
class OriginClass
def self.index_name; 'foo'; end
- def self.document_type; 'bar'; end
end
end
after(:all) do
remove_classes(OriginClass)
@@ -32,12 +31,13 @@
let(:response_document) do
{
'aggregations' => {
'foo' => {'bar' => 10 },
- 'price' => { 'doc_count' => 123,
- 'min' => { 'value' => 1.0},
- 'max' => { 'value' => 99 }
+ 'price' => {
+ 'doc_count' => 123,
+ 'min' => { 'value' => 1.0},
+ 'max' => { 'value' => 99 }
}
}
}
end