Added tests for network configuration option
This commit is contained in:
@@ -38,6 +38,15 @@ class ConfigurationProxyTest < ActiveSupport::TestCase
|
||||
assert_not config.proxy.ssl?
|
||||
end
|
||||
|
||||
test "network_args defaults" do
|
||||
assert_equal [ "--network", "kamal" ], config.proxy.network_args
|
||||
end
|
||||
|
||||
test "network_args with configured options" do
|
||||
@deploy[:proxy] = { "network" => "example" }
|
||||
assert_equal [ "--network", "example" ], config.proxy.network_args
|
||||
end
|
||||
|
||||
private
|
||||
def config
|
||||
Kamal::Configuration.new(@deploy)
|
||||
|
||||
Reference in New Issue
Block a user