diff options
author | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-07-27 00:41:28 +0530 |
---|---|---|
committer | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-07-27 00:41:28 +0530 |
commit | b34d7692c13617032776850af711beb8d4ff3e4f (patch) | |
tree | 5a0b8ef598ae76c83545b51c04b2a57fffc52549 /actionview | |
parent | 0eff6956a55882817f67c8d471d32ed3e4b109ee (diff) | |
download | rails-b34d7692c13617032776850af711beb8d4ff3e4f.tar.gz rails-b34d7692c13617032776850af711beb8d4ff3e4f.tar.bz2 rails-b34d7692c13617032776850af711beb8d4ff3e4f.zip |
Change the test description to say the URL helper name in test.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/url_helper_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
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 %{<a href="sms:15155555785;"><img src="/feedback.png" /></a>}, sms_to("15155555785", raw('<img src="/feedback.png" />')) end - def test_sms_with_html_safe_string + def test_sms_to_with_html_safe_string assert_dom_equal( %{<a href="sms:1%2B5155555785;">1+5155555785</a>}, sms_to(raw("1+5155555785")) ) end - def test_sms_with_nil + def test_sms_to_with_nil assert_dom_equal( %{<a href="sms:;"></a>}, 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 %{<a href="sms:15155555785;"><span>Text me</span></a>}, 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 %{<a class="special" href="sms:15155555785;?&body=Hello%20from%20Jim"><span>Text me</span></a>}, 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) |