spec/yun/model/ssh_config_spec.rb in yun-0.0.4 vs spec/yun/model/ssh_config_spec.rb in yun-0.0.5
- old
+ new
@@ -1,16 +1,17 @@
require 'spec_helper'
describe Yun::SshConfig do
before do
+ @user = 'some_user'
@key_name = 'some_key'
end
it 'should construct from config object' do
- ssh_config = Yun::SshConfig.new @key_name
+ ssh_config = Yun::SshConfig.new @user, @key_name
- ssh_config.user.should == 'ec2-user'
+ ssh_config.user.should == @user
ssh_config.key_file.should == '~/.ssh/some_key.pem'
end
end