vagrant-lxc-ng/spec/vagrant_ssh_spec.rb

21 lines
395 B
Ruby
Raw Normal View History

2013-02-25 04:58:04 +00:00
require 'spec_helper'
describe 'vagrant ssh' do
let(:ip) { '10.0.3.100' }
before :all do
destroy_container!
configure_box_with :forwards => [[2222, 22]], :ip => ip
provider_up
end
after :all do
restore_rinetd_conf!
destroy_container!
end
it 'accepts a user argument' do
provider_ssh('c' => 'echo $USER', 'u' => 'ubuntu').should include 'ubuntu'
end
end