spec/config_spec.rb in rock_config-0.0.3 vs spec/config_spec.rb in rock_config-0.0.4

- old
+ new

@@ -48,7 +48,20 @@ } config = Config.new(hash) config.development.elastic.host.should eq("localhost") end + + it "supports accessing the values by brackets" do + hash = { + "development" => { + "elastic" => { + "host" => "localhost" + } + } + } + + config = Config.new(hash) + config["development"]["elastic"]["host"].should eq("localhost") + end end end