vaguerent/test/vagrant/actions/vm/customize_test.rb
2010-03-19 16:42:48 -07:00

17 lines
462 B
Ruby

require File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')
class CustomizeActionTest < Test::Unit::TestCase
setup do
@runner, @vm, @action = mock_action(Vagrant::Actions::VM::Customize)
mock_config
end
context "executing" do
should "run the VM customization procs then save the VM" do
@runner.env.config.vm.expects(:run_procs!).with(@vm)
@vm.expects(:save).with(true).once
@action.execute!
end
end
end