Sha256: 55f3b249c7d92529346f89c30c4ba9ffcc58999463686d1e288e6bb36f41a3c6
Contents?: true
Size: 751 Bytes
Versions: 44
Compression:
Stored size: 751 Bytes
Contents
require_relative "test_helper.rb" module LogjamAgent class UtilTest < MiniTest::Test include LogjamAgent::Util test "does not change a full spec" do augmented = augment_connection_spec("tcp://a:1", 2) assert_equal "tcp://a:1", augmented end test "adds default port when missing" do augmented = augment_connection_spec("tcp://a", 1) assert_equal "tcp://a:1", augmented end test "adds default protocol when missing" do augmented = augment_connection_spec("a:1", 2) assert_equal "tcp://a:1", augmented end test "adds default protocol and default port when missing" do augmented = augment_connection_spec("a", 1) assert_equal "tcp://a:1", augmented end end end
Version data entries
44 entries across 44 versions & 1 rubygems