Files
nairobi/spec/components/layout/footer_component_spec.rb
Javi Martín 79c1aa0755 Fix "rel" attribute in footer description links
We were accidentally filtering this attribute when sanitizing the text
since commit 928312e21.
2023-10-24 16:41:03 +02:00

15 lines
370 B
Ruby

require "rails_helper"
describe Layout::FooterComponent do
describe "description links" do
it "generates links that open in the same tab" do
render_inline Layout::FooterComponent.new
page.find(".info") do |info|
expect(info).to have_css "a[rel=nofollow]", count: 2
expect(info).not_to have_css "a[target]"
end
end
end
end