Commit aa17c1f2 authored by Harsh Chouraria's avatar Harsh Chouraria

Fix added test to look for a link directly

Switches from using the accidental object representation string
to actual link using a helper method
parent 744b109c
......@@ -369,8 +369,7 @@ RSpec.describe Notify do
end
it 'contains a link to the merge request url' do
is_expected.to have_body_text merge_request
is_expected.to have_body_text 'merge request'
is_expected.to have_link('merge request', href: project_merge_request_url(merge_request.target_project, merge_request))
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment