Don't open auto links in a new tab

Just like we aren't opening any external links in a new tab, only, in
this case, we don't even know whether these links are internal or
external.
This commit is contained in:
Javi Martín
2023-10-16 00:03:31 +02:00
parent 5aa56c054f
commit aeff8a0f31
9 changed files with 10 additions and 10 deletions

View File

@@ -153,7 +153,7 @@ describe "Commenting proposals" do
expect(page).to have_content "Built with http://rubyonrails.org/"
expect(page).to have_link("http://rubyonrails.org/", href: "http://rubyonrails.org/")
expect(find_link("http://rubyonrails.org/")[:rel]).to eq("nofollow")
expect(find_link("http://rubyonrails.org/")[:target]).to eq("_blank")
expect(find_link("http://rubyonrails.org/")[:target]).to be_blank
end
end