Do not worry about transition to running state when starting a container, this is handled from outside

This commit is contained in:
Fabio Rehm 2013-09-12 01:12:07 -03:00
parent 791a93fe9e
commit cf73a843d0
2 changed files with 2 additions and 7 deletions

View file

@ -78,7 +78,7 @@ module Vagrant
prune_customizations prune_customizations
write_customizations(customizations + @customizations) write_customizations(customizations + @customizations)
@cli.transition_to(:running) { |c| c.start(extra) } @cli.start(extra)
end end
def forced_halt def forced_halt

View file

@ -80,7 +80,6 @@ describe Vagrant::LXC::Driver do
subject { described_class.new('name', sudo, cli) } subject { described_class.new('name', sudo, cli) }
before do before do
cli.stub(:transition_to).and_yield(cli)
subject.customizations << internal_customization subject.customizations << internal_customization
subject.start(customizations) subject.start(customizations)
end end
@ -92,10 +91,6 @@ describe Vagrant::LXC::Driver do
it 'starts container with configured customizations' do it 'starts container with configured customizations' do
cli.should have_received(:start) cli.should have_received(:start)
end end
it 'expects a transition to running state to take place' do
cli.should have_received(:transition_to).with(:running)
end
end end
describe 'halt' do describe 'halt' do