test/breadcrumbs_test.rb in breadcrumbs-0.1.5 vs test/breadcrumbs_test.rb in breadcrumbs-0.1.6

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding: utf-8 -*- require "test_helper" class BreadcrumbsTest < Test::Unit::TestCase def setup @breadcrumbs = Breadcrumbs.new @@ -48,9 +49,10 @@ def test_render_as_list @breadcrumbs.add "Home", "/", :class => "home" html = Nokogiri::HTML(@breadcrumbs.render) assert_not_nil html.at("ul.breadcrumbs") + assert_nil html.at("ul.breadcrumbs[format=list]") end def test_render_as_ordered_list @breadcrumbs.add "Home", "/" html = Nokogiri::HTML(@breadcrumbs.render(:format => :ordered_list))