spec/lib/simple_navigation_spec.rb in simple-navigation-2.5.4 vs spec/lib/simple_navigation_spec.rb in simple-navigation-2.6.0

- old
+ new

@@ -202,9 +202,26 @@ end it {lambda {SimpleNavigation.context_for_eval}.should raise_error} end end end + + describe 'regarding renderers' do + it "should have registered the builtin renderers by default" do + SimpleNavigation.registered_renderers.should_not be_empty + end + + describe 'register_renderer' do + before(:each) do + @renderer = stub(:renderer) + end + it "should add the specified renderer to the list of renderers" do + SimpleNavigation.register_renderer(:my_renderer => @renderer) + SimpleNavigation.registered_renderers[:my_renderer].should == @renderer + end + end + + end describe 'load_config' do context 'config_file_path is set' do before(:each) do