Sha256: 9c38068db977223cb9665d08fda80abdcff9ed05490acc4ce0037ee0764d190e

Contents?: true

Size: 599 Bytes

Versions: 19

Compression:

Stored size: 599 Bytes

Contents

require File.expand_path("../../../../base", __FILE__)

describe Vagrant::Config::V2::DummyConfig do
  it "should allow attribute setting" do
    expect { subject.foo = :bar }.
      to_not raise_error
  end

  it "should allow method calls that return more DummyConfigs" do
    subject.foo.should be_kind_of(described_class)
  end

  it "should allow hash access" do
    expect { subject[:foo] }.
      to_not raise_error

    subject[:foo].should be_kind_of(described_class)
  end

  it "should allow setting hash values" do
    expect { subject[:foo] = :bar }.
      to_not raise_error
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
tamtam-vagrant-reload-1.1.3 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/dummy_config_test.rb
tamtam-vagrant-reload-1.1.2 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/dummy_config_test.rb
tamtam-vagrant-reload-1.1.1 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/dummy_config_test.rb
tamtam-vagrant-reload-1.1 vendor/cache/vagrant-0ac2a8738841/test/unit/vagrant/config/v2/dummy_config_test.rb
tnargav-1.3.6 test/unit/vagrant/config/v2/dummy_config_test.rb
tnargav-1.3.3 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrant-shell-0.2.9 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/dummy_config_test.rb
tnargav-1.2.3 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrant-shell-0.2.8 demo/templates/vendor/bundle/ruby/1.9.1/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/dummy_config_test.rb
vagrant-shell-0.2.6 vendor/bundle/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/dummy_config_test.rb
vagrant-shell-0.2.5 vendor/bundle/gems/tnargav-1.2.2/test/unit/vagrant/config/v2/dummy_config_test.rb
tnargav-1.2.2 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrantup-1.1.3 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrantup-1.1.2 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrantup-1.1.1 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrantup-1.1.0 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrantup-1.1.4 test/unit/vagrant/config/v2/dummy_config_test.rb
vagrant-actionio-0.0.9 vendor/bundle/bundler/gems/vagrant-c74251a1d9c0/test/unit/vagrant/config/v2/dummy_config_test.rb
vagrant-lxc-0.0.1 vendor/vagrant/test/unit/vagrant/config/v2/dummy_config_test.rb