spec/integration/dsl_spec.rb in capistrano-3.0.0.pre13 vs spec/integration/dsl_spec.rb in capistrano-3.0.0.pre14

- old
+ new

@@ -232,10 +232,15 @@ dsl.set(:format, :dot) dsl.set(:log_level, :debug) dsl.set(:default_env, default_env) dsl.set(:pty, true) dsl.set(:connection_timeout, 10) + dsl.set(:ssh_options, { + keys: %w(/home/user/.ssh/id_rsa), + forward_agent: false, + auth_methods: %w(publickey password) + }) dsl.configure_backend end it 'sets the output' do expect(config.output).to be_a SSHKit::Formatter::Dot @@ -254,8 +259,15 @@ end it 'sets the backend connection timeout' do expect(backend.connection_timeout).to eq 10 end + + it 'sets the backend ssh_options' do + expect(backend.ssh_options[:keys]).to eq %w(/home/user/.ssh/id_rsa) + expect(backend.ssh_options[:forward_agent]).to eq false + expect(backend.ssh_options[:auth_methods]).to eq %w(publickey password) + end + end end