From c285c1582061af9910dac828041eeede175e46d2 Mon Sep 17 00:00:00 2001 From: Pietro Moro Date: Fri, 26 Jul 2019 21:25:23 +0000 Subject: Change test description with the correct URL name --- actionview/test/template/url_helper_test.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'actionview') diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index 08413a65c8..ba5ae837f1 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -657,7 +657,7 @@ class UrlHelperTest < ActiveSupport::TestCase ) end - def test_mail_with_options + def test_mail_to_with_options assert_dom_equal( %{My email}, mail_to("me@example.com", "My email", cc: "ccaddress@example.com", bcc: "bccaddress@example.com", subject: "This is an example email", body: "This is the body of the message.", reply_to: "foo@bar.com") @@ -795,40 +795,40 @@ class UrlHelperTest < ActiveSupport::TestCase ) end - def test_phone_with_img + def test_phone_to_with_img assert_dom_equal %{}, phone_to("1234567890", raw('')) end - def test_phone_with_html_safe_string + def test_phone_to_with_html_safe_string assert_dom_equal( %{1+234567890}, phone_to(raw("1+234567890")) ) end - def test_phone_with_nil + def test_phone_to_with_nil assert_dom_equal( %{}, phone_to(nil) ) end - def test_phone_returns_html_safe_string + def test_phone_to_returns_html_safe_string assert_predicate phone_to("1234567890"), :html_safe? end - def test_phone_with_block + def test_phone_to_with_block assert_dom_equal %{Phone}, phone_to("1234567890") { content_tag(:span, "Phone") } end - def test_phone_with_block_and_options + def test_phone_to_with_block_and_options assert_dom_equal %{Phone}, phone_to("1234567890", country_code: "01", class: "special") { content_tag(:span, "Phone") } end - def test_phone_does_not_modify_html_options_hash + def test_phone_to_does_not_modify_html_options_hash options = { class: "special" } phone_to "1234567890", "ME!", options assert_equal({ class: "special" }, options) -- cgit v1.2.3