Sha256: be1ffd86ecc0f02c2dc6e46964e2086ec1281bb77b750193e6397def359f9a28
Contents?: true
Size: 644 Bytes
Versions: 77
Compression:
Stored size: 644 Bytes
Contents
require 'test_helper' module Elasticsearch module Test class SnapshotGetRepositoryTest < ::Test::Unit::TestCase context "Snapshot: Get repository" 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 '_snapshot/foo', url assert_equal Hash.new, params assert_nil body true end.returns(FakeResponse.new) subject.snapshot.get_repository :repository => 'foo' end end end end end
Version data entries
77 entries across 77 versions & 6 rubygems