Sha256: 0c0f3faa0913056edf6299e92ec9943239e787c6b2ba16c3a0772948883d4945
Contents?: true
Size: 914 Bytes
Versions: 27
Compression:
Stored size: 914 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 test "supports inproc" do augmented = augment_connection_spec("inproc://hugo-schnugo", 2) assert_equal "inproc://hugo-schnugo", augmented end end end
Version data entries
27 entries across 27 versions & 1 rubygems