vaguerent/test/unit/vagrant/action/environment_test.rb
2011-12-22 20:17:45 -08:00

17 lines
394 B
Ruby

require File.expand_path("../../../base", __FILE__)
describe Vagrant::Action::Environment do
let(:instance) { described_class.new }
it "should be a hash" do
instance.should be_empty
instance["foo"] = "bar"
instance["foo"].should == "bar"
end
it "should be a hash accessible by string or symbol" do
instance["foo"] = "bar"
instance[:foo].should == "bar"
end
end