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:
parent
65c52ffc24
commit
05671a1ef6
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue