spec/mixlib/config_spec.rb in mixlib-config-2.0.0.rc.3 vs spec/mixlib/config_spec.rb in mixlib-config-2.0.0.rc.4

- old
+ new

@@ -61,11 +61,20 @@ it "should allow you to reference a value by index" do ConfigIt[:alpha].should == 'omega' end + it "should allow you to reference a value by string index" do + ConfigIt['alpha'].should == 'omega' + end + it "should allow you to set a value by index" do ConfigIt[:alpha] = "one" + ConfigIt[:alpha].should == "one" + end + + it "should allow you to set a value by string index" do + ConfigIt['alpha'] = "one" ConfigIt[:alpha].should == "one" end it "should allow setting a value with attribute form" do ConfigIt.arbitrary_value = 50