From b34d7692c13617032776850af711beb8d4ff3e4f Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Sat, 27 Jul 2019 00:41:28 +0530 Subject: Change the test description to say the URL helper name in test. --- actionview/test/template/url_helper_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'actionview') diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index d1570553dd..08413a65c8 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -731,40 +731,40 @@ class UrlHelperTest < ActiveSupport::TestCase ) end - def test_sms_with_img + def test_sms_to_with_img assert_dom_equal %{}, sms_to("15155555785", raw('')) end - def test_sms_with_html_safe_string + def test_sms_to_with_html_safe_string assert_dom_equal( %{1+5155555785}, sms_to(raw("1+5155555785")) ) end - def test_sms_with_nil + def test_sms_to_with_nil assert_dom_equal( %{}, sms_to(nil) ) end - def test_sms_returns_html_safe_string + def test_sms_to_returns_html_safe_string assert_predicate sms_to("15155555785"), :html_safe? end - def test_sms_with_block + def test_sms_to_with_block assert_dom_equal %{Text me}, sms_to("15155555785") { content_tag(:span, "Text me") } end - def test_sms_with_block_and_options + def test_sms_to_with_block_and_options assert_dom_equal %{Text me}, sms_to("15155555785", body: "Hello from Jim", class: "special") { content_tag(:span, "Text me") } end - def test_sms_does_not_modify_html_options_hash + def test_sms_to_does_not_modify_html_options_hash options = { class: "special" } sms_to "15155555785", "ME!", options assert_equal({ class: "special" }, options) -- cgit v1.2.3