test/unit/connection_test.rb in elasticsearch-transport-7.12.0 vs test/unit/connection_test.rb in elasticsearch-transport-7.13.0.pre
- old
+ new
@@ -62,11 +62,11 @@
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
+ assert_match(/host: x/, c.to_s)
+ assert_match(/alive/, c.to_s)
end
should "not be dead by default" do
c = Connection.new
assert ! c.dead?