Sha256: 39c2cf66ffd699ddd2f3daf577d981209f7e9982176d063b9e6ff8869c5629d4

Contents?: true

Size: 608 Bytes

Versions: 101

Compression:

Stored size: 608 Bytes

Contents

require "test_helper"

class NFSHelpersVMActionTest < Test::Unit::TestCase
  setup do
    @klass = Class.new do
      include Vagrant::Action::VM::NFSHelpers
    end

    @app, @env = action_env

    @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
    @env.env.stubs(:host).returns(nil)
    assert_nothing_raised { @instance.clear_nfs_exports(@env) }
  end
end

Version data entries

101 entries across 101 versions & 9 rubygems

Version Path
bmhatfield-vagrant-1.0.10 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
bmhatfield-vagrant-1.0.9 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
bmhatfield-vagrant-1.0.8 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
bmhatfield-vagrant-1.0.7 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.7 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.6 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.5 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.4 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.3 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.2 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.1 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-1.0.0 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.99.2 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.99.1 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.7 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.6 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.5 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.4 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.3 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb
vagrantup-0.9.2 test/unit_legacy/vagrant/action/vm/nfs_helpers_test.rb