Skip to content

Commit

Permalink
Use assert_dom_equal instead of assert_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
sanemat committed May 8, 2013
1 parent db2832d commit dfdd243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/standard_renderer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_link_html_options
config.microdata = false
end

assert_equal('<a href="url" class="first last" title="link title">name</a>',
assert_dom_equal('<a href="url" class="first last" title="link title">name</a>',
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html))

assert_equal('name',
Expand All @@ -90,7 +90,7 @@ def test_link_html_options_with_microdata
config.microdata = true
end

assert_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" class="first last" itemprop="url" title="link title"><span itemprop="title">name</span></a></div>',
assert_dom_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="url" class="first last" itemprop="url" title="link title"><span itemprop="title">name</span></a></div>',
renderer.render_crumbs([['name', 'url', {:link_html_options => {:title => 'link title'}}]], :first_class => 'first', :last_class => 'last', :format => :html))

assert_equal('<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">name</span></div>',
Expand Down

0 comments on commit dfdd243

Please sign in to comment.