Sha256: 13b57d4daa608e412b1bcff41459da33e1163eef1d41f70a623a5ae46bb08869
Contents?: true
Size: 607 Bytes
Versions: 6
Compression:
Stored size: 607 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper') class CustomizeActionTest < Test::Unit::TestCase setup do @runner, @vm, @action = mock_action(Vagrant::Actions::VM::Customize) end context "executing" do should "run the VM customization procs then save the VM" do @runner.env.config.vm.customize { |vm| } @runner.env.config.vm.expects(:run_procs!).with(@vm) @vm.expects(:save).once @action.execute! end should "not run anything if no customize blocks exist" do @vm.expects(:save).never @action.execute! end end end
Version data entries
6 entries across 6 versions & 2 rubygems