spec/lib/simple_navigation/configuration_spec.rb in simple-navigation-2.1.0 vs spec/lib/simple_navigation/configuration_spec.rb in simple-navigation-2.2.0

- old
+ new

@@ -118,13 +118,10 @@ @config.renderer.should == SimpleNavigation::Renderer::List end it "should set the selected_class to 'selected' as default" do @config.selected_class.should == 'selected' end - it "should set render_all_levels to false as default" do - @config.render_all_levels.should be_false - end it "should set autogenerate_item_ids to true as default" do @config.autogenerate_item_ids.should be_true end it "should set auto_highlight to true as default" do @config.auto_highlight.should be_true @@ -180,9 +177,18 @@ @config.items(@external_provider) end end context 'items_provider not specified' do it {lambda {@config.items}.should raise_error} + end + end + end + + describe 'render_all_levels=' do + it "should set the instance var" do + ActiveSupport::Deprecation.silence do + @config.render_all_levels = true + @config.render_all_levels.should be_true end end end describe 'loaded?' do