vagrant-lxc-ng/spec/vagrant_ssh_spec.rb
2013-02-25 02:04:31 -03:00

21 lines
395 B
Ruby

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