aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorPietro Moro <pietromoro@programmer.net>2019-07-26 21:25:23 +0000
committerPietro Moro <pietromoro@programmer.net>2019-07-26 21:25:23 +0000
commitc285c1582061af9910dac828041eeede175e46d2 (patch)
treeb93e8619393b4eb51d0a581b2fb2aa8a8a6bb101 /actionview
parentefa2299ac3bbf86feacfa337645654f87109e769 (diff)
downloadrails-c285c1582061af9910dac828041eeede175e46d2.tar.gz
rails-c285c1582061af9910dac828041eeede175e46d2.tar.bz2
rails-c285c1582061af9910dac828041eeede175e46d2.zip
Change test description with the correct URL name
Diffstat (limited to 'actionview')
-rw-r--r--actionview/test/template/url_helper_test.rb16
1 files changed, 8 insertions, 8 deletions
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(
%{<a href="mailto:me@example.com?cc=ccaddress%40example.com&amp;bcc=bccaddress%40example.com&amp;body=This%20is%20the%20body%20of%20the%20message.&amp;subject=This%20is%20an%20example%20email&amp;reply-to=foo%40bar.com">My email</a>},
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 %{<a href="tel:1234567890"><img src="/feedback.png" /></a>},
phone_to("1234567890", raw('<img src="/feedback.png" />'))
end
- def test_phone_with_html_safe_string
+ def test_phone_to_with_html_safe_string
assert_dom_equal(
%{<a href="tel:1%2B234567890">1+234567890</a>},
phone_to(raw("1+234567890"))
)
end
- def test_phone_with_nil
+ def test_phone_to_with_nil
assert_dom_equal(
%{<a href="tel:"></a>},
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 %{<a href="tel:1234567890"><span>Phone</span></a>},
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 %{<a class="special" href="tel:+011234567890"><span>Phone</span></a>},
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)