Sha256: 510cd37638312a1c38b8372c3546a550a342548f5e2cf47417b2c6875cf2759a
Contents?: true
Size: 599 Bytes
Versions: 38
Compression:
Stored size: 599 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class TasksGetTest < ::Test::Unit::TestCase context "Tasks: Get" 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 '_tasks/foo1', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.tasks.get :task_id => 'foo1' end end end end end
Version data entries
38 entries across 38 versions & 5 rubygems