test/test_format_helpers.rb in padrino-helpers-0.10.5 vs test/test_format_helpers.rb in padrino-helpers-0.10.6.a

- old
+ new

@@ -13,11 +13,11 @@ include Padrino::Helpers::FormatHelpers context 'for #simple_format method' do should "format simple text into html format" do actual_text = simple_format("Here is some basic text...\n...with a line break.") - assert_equal "<p>Here is some basic text...\n<br />...with a line break.</p>", actual_text + assert_equal "<p>Here is some basic text...\n<br>...with a line break.</p>", actual_text end should "format more text into html format" do actual_text = simple_format("We want to put a paragraph...\n\n...right there.") assert_equal "<p>We want to put a paragraph...</p>\n\n<p>...right there.</p>", actual_text @@ -29,10 +29,10 @@ end context 'wrapped in a custom tag' do should "format simple text into html format" do actual_text = simple_format("Here is some basic text...\n...with a line break.", :tag => :div) - assert_equal "<div>Here is some basic text...\n<br />...with a line break.</div>", actual_text + assert_equal "<div>Here is some basic text...\n<br>...with a line break.</div>", actual_text end should "format more text into html format" do actual_text = simple_format("We want to put a paragraph...\n\n...right there.", :tag => :div) assert_equal "<div>We want to put a paragraph...</div>\n\n<div>...right there.</div>", actual_text