Sha256: c3b153f15fe8ba4b6cad2f20df62aaea79403cd40b66bfaee0a6b9a73f0f26e6
Contents?: true
Size: 474 Bytes
Versions: 1
Compression:
Stored size: 474 Bytes
Contents
require 'minitest_helper' describe SimpleSolrClient::Core do before do @core = TempCore.instance.core('core_basics') end it "creates a new object" do @core.base_url.must_equal ENV['TEST_SOLR_URL'] end it "constructs a url with no args" do @core.url.must_equal "#{ENV['TEST_SOLR_URL']}/#{@core.name}" end it "constructs a URL with args" do @core.url('admin', 'ping').must_equal "#{ENV['TEST_SOLR_URL']}/#{@core.name}/admin/ping" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_solr_client-0.2.1 | spec/core_basics_spec.rb |