test/unit/connection_test.rb in elasticsearch-transport-7.9.0 vs test/unit/connection_test.rb in elasticsearch-transport-7.10.0.pre

- old
+ new

@@ -55,9 +55,14 @@ should "return full url with path" do c = Connection.new :host => { :protocol => 'http', :host => 'localhost', :port => '9200', :path => '/foo' } assert_equal 'http://localhost:9200/foo/_search?foo=bar', c.full_url('_search', {:foo => 'bar'}) end + should "return right full url with path when path starts with /" do + c = Connection.new :host => { :protocol => 'http', :host => 'localhost', :port => '9200', :path => '/foo' } + assert_equal 'http://localhost:9200/foo/_search?foo=bar', c.full_url('/_search', {:foo => 'bar'}) + end + should "have a string representation" do c = Connection.new :host => 'x' assert_match /host: x/, c.to_s assert_match /alive/, c.to_s end