spec/units/search_spec.rb in es-elasticity-0.9.0 vs spec/units/search_spec.rb in es-elasticity-0.11.1

- old
+ new

@@ -47,15 +47,16 @@ let :empty_response do { "hits" => { "total" => 0, "hits" => [] }} end let :scan_response do - { "_scroll_id" => "abc123", "hits" => { "total" => 2 } } + { "_scroll_id" => "abc123", "hits" => { "total" => 2, "hits" => [ + { "_id" => 1, "_source" => { "name" => "foo" } } + ]}} end let :scroll_response do - { "_scroll_id" => "abc456", "hits" => { "total" => 2, "hits" => [ - { "_id" => 1, "_source" => { "name" => "foo" } }, + { "_scroll_id" => "abc456", "hits" => { "total" => 1, "hits" => [ { "_id" => 2, "_source" => { "name" => "bar" } }, ]}} end let :mapper do