spec/configurability/config_spec.rb in configurability-1.2.0 vs spec/configurability/config_spec.rb in configurability-2.0.0

- old
+ new

@@ -22,11 +22,10 @@ ##################################################################### ### C O N T E X T S ##################################################################### describe Configurability::Config do - include Configurability::SpecHelpers TEST_CONFIG = %{ --- section: subsection: @@ -64,9 +63,11 @@ Configurability::Config.new.changed_reason.should be_nil() end it "autogenerates accessors for non-existant struct members" do config = Configurability::Config.new + config.plugins ||= {} + config.plugins.filestore ||= {} config.plugins.filestore.maxsize = 1024 config.plugins.filestore.maxsize.should == 1024 end it "merges values loaded from the config with any defaults given" do