Sha256: da2ce9b6c77d2380e450152689e4aec60213d0d723c87e9d71120cee6a773f32
Contents?: true
Size: 712 Bytes
Versions: 10
Compression:
Stored size: 712 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'test_helper') class CommandsReloadTest < Test::Unit::TestCase setup do @klass = Vagrant::Commands::Reload @persisted_vm = mock("persisted_vm") @persisted_vm.stubs(:execute!) @env = mock_environment @env.stubs(:require_persisted_vm) @env.stubs(:vm).returns(@persisted_vm) @instance = @klass.new(@env) end context "executing" do should "require a persisted VM" do @env.expects(:require_persisted_vm).once @instance.execute end should "call the `reload` action on the VM" do @persisted_vm.expects(:execute!).with(Vagrant::Actions::VM::Reload).once @instance.execute end end end
Version data entries
10 entries across 10 versions & 2 rubygems