spec/mixlib/config_spec.rb in mixlib-config-2.0.0.rc.1 vs spec/mixlib/config_spec.rb in mixlib-config-2.0.0.rc.2

- old
+ new

@@ -348,10 +348,11 @@ describe "When a configurable exists with a context" do before :each do @klass = Class.new @klass.extend(::Mixlib::Config) @klass.class_eval do + configurable :x config_context(:blah) do default :x, 5 end end end @@ -387,9 +388,10 @@ config_context(:blah) do config_context(:yarr) do default :x, 5 end end + configurable :x end end it "configurable defaults in that context work" do @klass.blah.yarr.x.should == 5