spec/confstruct/configuration_spec.rb in confstruct-0.2.4 vs spec/confstruct/configuration_spec.rb in confstruct-0.2.5

- old
+ new

@@ -125,8 +125,14 @@ @config.configure do project 'other-project' mock postconfigurator end end + + it "should be initializable with a string-keyed hash" do + conf = Confstruct::Configuration.new + conf.configure(:top=>{:middle=>{"one"=>"two"}}) + conf.top.middle.one.should == 'two' + end end end