test/breadcrumbs_test.rb in breadcrumbs-0.1.3 vs test/breadcrumbs_test.rb in breadcrumbs-0.1.4

- old
+ new

@@ -43,9 +43,16 @@ html = Nokogiri::HTML(@breadcrumbs.render) assert_not_nil html.at("ul.breadcrumbs") end + def test_render_as_ordered_list + @breadcrumbs.add "Home", "/" + html = Nokogiri::HTML(@breadcrumbs.render(:format => :ordered_list)) + + assert_not_nil html.at("ol.breadcrumbs") + end + def test_render_as_list_with_custom_attributes @breadcrumbs.add "Home", "/", :class => "home" html = Nokogiri::HTML(@breadcrumbs.render(:id => "breadcrumbs", :class => "top")) assert_not_nil html.at("ul.top#breadcrumbs")