]> git.openstreetmap.org Git - rails.git/blobdiff - test/helpers/application_helper_test.rb
Merge remote-tracking branch 'upstream/pull/2919' into master
[rails.git] / test / helpers / application_helper_test.rb
index dc45a6c07bce919a59bb880e41be58f37b5a73d9..fe4587b87c50455d7d936ef21ea2d32fe26baa75 100644 (file)
@@ -16,11 +16,11 @@ class ApplicationHelperTest < ActionView::TestCase
       text = "Test #{link} is <b>made</b> into a link"
 
       html = linkify(text)
-      assert_equal true, html.html_safe?
+      assert html.html_safe?
       assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is &lt;b&gt;made&lt;/b&gt; into a link", html
 
       html = linkify(text.html_safe)
-      assert_equal true, html.html_safe?
+      assert html.html_safe?
       assert_dom_equal "Test <a href=\"#{link}\" rel=\"nofollow\">#{link}</a> is <b>made</b> into a link", html
     end
 
@@ -28,11 +28,11 @@ class ApplicationHelperTest < ActionView::TestCase
       text = "Test #{link} is not <b>made</b> into a link"
 
       html = linkify(text)
-      assert_equal true, html.html_safe?
+      assert html.html_safe?
       assert_dom_equal "Test #{link} is not &lt;b&gt;made&lt;/b&gt; into a link", html
 
       html = linkify(text.html_safe)
-      assert_equal true, html.html_safe?
+      assert html.html_safe?
       assert_dom_equal "Test #{link} is not <b>made</b> into a link", html
     end
   end