Sha256: 13113b64335844ab807dcf7ede9d6c531188dde5b741bb37cc4c16304f3aa4f5
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
require "test_helper" class NFSHelpersVMActionTest < Test::Unit::TestCase setup do @klass = Class.new @klass.send(:include, Vagrant::Action::VM::NFSHelpers) @app, @env = mock_action_data @instance = @klass.new end should "clear NFS exports for the environment if the host exists" do @host = mock("host") @env.env.stubs(:host).returns(@host) @host.expects(:nfs_cleanup).once @instance.clear_nfs_exports(@env) end should "not do anything if host is nil" do assert_nothing_raised { @instance.clear_nfs_exports(@env) } end end
Version data entries
4 entries across 4 versions & 2 rubygems