Sha256: a79650e7e619c74bfbf6a06f68b4339660565b3addf136a0a0bddadb544e4a9a
Contents?: true
Size: 821 Bytes
Versions: 16
Compression:
Stored size: 821 Bytes
Contents
require 'test_helper' class Elasticsearch::Persistence::RepositoryClientTest < Test::Unit::TestCase context "The repository client" do setup do @shoulda_subject = Class.new() { include Elasticsearch::Persistence::Repository::Client }.new end should "have a default client" do assert_not_nil subject.client assert_instance_of Elasticsearch::Transport::Client, subject.client end should "allow to set a client" do begin subject.client = "Foobar" assert_equal "Foobar", subject.client ensure subject.client = nil end end should "allow to set the client with DSL" do begin subject.client "Foobar" assert_equal "Foobar", subject.client ensure subject.client = nil end end end end
Version data entries
16 entries across 16 versions & 2 rubygems