spec/lib/simple_navigation_spec.rb in simple-navigation-3.0.2 vs spec/lib/simple_navigation_spec.rb in simple-navigation-3.1.0

- old
+ new

@@ -253,9 +253,15 @@ context 'level is :all' do it "should return the primary_navigation" do SimpleNavigation.active_item_container_for(:all).should == @primary end end + context 'level is :leaves' do + it "should return the currently active leaf-container" do + @primary.should_receive(:active_leaf_container) + SimpleNavigation.active_item_container_for(:leaves) + end + end context 'level is a Range' do it "should take the min of the range to lookup the active container" do @primary.should_receive(:active_item_container_for).with(2) SimpleNavigation.active_item_container_for(2..3) end