diff options
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/profiles/show.html.haml_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/views/profiles/show.html.haml_spec.rb b/spec/views/profiles/show.html.haml_spec.rb index daa1d20e6b1..5751d47ee97 100644 --- a/spec/views/profiles/show.html.haml_spec.rb +++ b/spec/views/profiles/show.html.haml_spec.rb @@ -17,6 +17,11 @@ RSpec.describe 'profiles/show' do expect(rendered).to have_field('user_name', with: user.name) expect(rendered).to have_field('user_id', with: user.id) + + expectd_link = help_page_path('user/profile/index', anchor: 'change-the-email-displayed-on-your-commits') + expected_link_html = "<a href=\"#{expectd_link}\" target=\"_blank\" " \ + "rel=\"noopener noreferrer\">#{_('Learn more.')}</a>" + expect(rendered.include?(expected_link_html)).to eq(true) end end end |