1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Test to highlight ssh_option merging failure

This commit is contained in:
Nick Townsend 2015-02-17 17:57:54 -08:00
parent 65c52ffc24
commit 05671a1ef6

View file

@ -180,6 +180,17 @@ module Capistrano
config.backend = :test
expect(config.backend).to eq :test
end
describe "ssh_options for Netssh" do
it 'merges them with the :ssh_options variable' do
config.set :format, :pretty
config.set :log_level, :debug
config.set :ssh_options, { user: 'albert' }
SSHKit::Backend::Netssh.configure do |ssh| ssh.ssh_options = { password: 'einstein' } end
config.configure_backend
expect(config.backend.config.backend.config.ssh_options).to eq({ user: 'albert', password: 'einstein' })
end
end
end
end
end