Sha256: c9f97db15d464e1d3ab7de2f57201452ee6f96499efc9ca089ed824872cd481d
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require "spec_helper" describe CouchRest::Model::ServerPool do subject { CouchRest::Model::ServerPool } describe ".instance" do it "should provide a singleton" do expect(subject.instance).to be_a(CouchRest::Model::ServerPool) end end describe "#[url]" do it "should provide a server object" do srv = subject.instance[COUCHHOST] expect(srv).to be_a(CouchRest::Server) end it "should always provide same object" do srv = subject.instance[COUCHHOST] srv2 = subject.instance[COUCHHOST] expect(srv.object_id).to eql(srv2.object_id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchrest_model-2.2.0.beta2 | spec/unit/server_pool_spec.rb |