diff --git a/test/components/beta/link_test.rb b/test/components/beta/link_test.rb index 66d230347c..b59727fd25 100644 --- a/test/components/beta/link_test.rb +++ b/test/components/beta/link_test.rb @@ -15,7 +15,7 @@ def test_renders_content_and_not_muted_link def test_renders_no_additional_whitespace result = render_inline(Primer::Beta::Link.new(href: "http://joe-jonas-shirtless.com")) { "content" } - assert_match(%r{^]+>]+>content$}, result.to_s) + assert_match(%r{^]+>content$}, result.to_s) end def test_renders_without_trailing_newline