We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6632e6e + 2fcbdfa commit 100be32Copy full SHA for 100be32
app/views/admin/sponsors/show.html.haml
@@ -16,7 +16,7 @@
16
.bg-light.p-3.mb-4
17
%dl.row
18
%dt= t('.website')
19
- %dd= link_to @sponsor.website
+ %dd= link_to @sponsor.website, @sponsor.website, target: '_blank'
20
21
%dt= t('.address')
22
- if @sponsor.address.present?
spec/features/admin/sponsor_spec.rb
@@ -97,7 +97,7 @@
97
scenario 'displays all sponsor details' do
98
expect(page).to have_content(sponsor.name)
99
expect(page).to have_content(sponsor.description)
100
- expect(page).to have_link(sponsor.website)
+ expect(page).to have_link(sponsor.website, href: sponsor.website)
101
expect(page).to have_content(sponsor.level)
102
expect(page).to have_content(ContactPresenter.new(sponsor.contacts.first).full_name)
103
0 commit comments