Sha256: 77e58c7f51f2a2f908dd1e48269c4a7c885fc52a2ba9c28f918b758dcc9e2a9b
Contents?: true
Size: 620 Bytes
Versions: 42
Compression:
Stored size: 620 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class ScrollTest < ::Test::Unit::TestCase context "Scroll" do subject { FakeClient.new } should "perform correct request" do subject.expects(:perform_request).with do |method, url, params, body| assert_equal 'GET', method assert_equal '_search/scroll', url assert_equal 'cXVlcn...', params[:scroll_id] assert_equal nil, body true end.returns(FakeResponse.new) subject.scroll :scroll_id => 'cXVlcn...' end end end end end
Version data entries
42 entries across 42 versions & 6 rubygems