Sha256: 4ae176b7d601db0da53091757128a91682be1b63e7b7bf7486761e2f545ee9bf

Contents?: true

Size: 682 Bytes

Versions: 61

Compression:

Stored size: 682 Bytes

Contents

require "test_helper"

class ActionEnvironmentTest < Test::Unit::TestCase
  setup do
    @klass = Vagrant::Action::Environment
    @instance = @klass.new(vagrant_env)
  end

  should "be a hash with indifferent access" do
    assert @instance.is_a?(Vagrant::Util::HashWithIndifferentAccess)
  end

  should "default values to those on the env" do
    @instance.env.stubs(:key).returns("value")
    assert_equal "value", @instance["key"]
  end

  should "setup the UI" do
    assert_equal @instance.env.ui, @instance.ui
  end

  should "report interrupted if interrupt error" do
    assert !@instance.interrupted?
    @instance.interrupt!
    assert @instance.interrupted?
  end
end

Version data entries

61 entries across 61 versions & 5 rubygems

Version Path
vagrantup-0.8.9 test/unit/vagrant/action/environment_test.rb
vagrantup-0.8.8 test/unit/vagrant/action/environment_test.rb
vagrantup-0.8.7 test/unit/vagrant/action/environment_test.rb
vagrantup-0.8.6 test/vagrant/action/environment_test.rb
vagrantup-0.8.5 test/vagrant/action/environment_test.rb
vagrantup-0.8.4 test/vagrant/action/environment_test.rb
vagrantup-0.8.3 test/vagrant/action/environment_test.rb
vagrantup-0.8.2 test/vagrant/action/environment_test.rb
vagrantup-0.8.10 test/unit/vagrant/action/environment_test.rb
vagrantup-0.8.1 test/vagrant/action/environment_test.rb
vagrantup-0.8.0 test/vagrant/action/environment_test.rb
vagrantup-0.7.8 test/vagrant/action/environment_test.rb
vagrantup-0.7.7 test/vagrant/action/environment_test.rb
vagrantup-0.7.6 test/vagrant/action/environment_test.rb
vagrantup-0.7.5 test/vagrant/action/environment_test.rb
vagrantup-0.7.4 test/vagrant/action/environment_test.rb
vagrantup-0.7.3 test/vagrant/action/environment_test.rb
vagrantup-0.7.2 test/vagrant/action/environment_test.rb
vagrantup-0.7.1 test/vagrant/action/environment_test.rb
vagrantup-0.7.0 test/vagrant/action/environment_test.rb