spec/settingslogic_spec.rb in cubus-settingslogic-2.0.6 vs spec/settingslogic_spec.rb in cubus-settingslogic-2.1.0

- old
+ new

@@ -28,10 +28,15 @@ it "should return the namespace" do Settings.namespace.should be_nil Settings2.namespace.should == 'setting1' end + + it "should return the default namespace" do + Settings.default_namespace.should == 'defaults' + Settings4.default_namespace.should == 'default_settings4' + end it "should get a key by a path" do Settings.key_by_path("language.haskell.paradigm").should == "functional" end @@ -40,9 +45,15 @@ Settings.language.smalltalk.paradigm.should == 'object oriented' end it "should not collide with global methods" do Settings3.collides.does.should == 'not' + end + + it "should merge defaults" do + Settings4.haskell.paradigm.should == 'functional' + Settings4.haskell.foo.should == 'bar' + Settings4.smalltalk.paradigm.should == 'object oriented' end it "should raise a helpful error message" do e = nil begin