Skip to content

Commit

Permalink
Add namespace to the url helper
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Dec 12, 2024
1 parent f128cd2 commit 695bb7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/spotlight/meta_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def add_exhibit_meta_content
def exhibit_twitter_card_content
card('twitter') do |card|
card['card'] = 'summary'
card['url'] = exhibit_root_url(current_exhibit)
card['url'] = spotlight.exhibit_root_url(current_exhibit)
card['title'] = current_exhibit.title
card['description'] = current_exhibit.subtitle
card['image'] = meta_image if current_exhibit.thumbnail
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/spotlight/meta_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
end

it 'generates a twitter card for the exhibit' do
allow(helper).to receive(:exhibit_root_url).and_return('some/url')
allow(helper).to receive(:spotlight).and_return(double(exhibit_root_url: 'some/url'))
allow(current_exhibit).to receive(:thumbnail).and_return(double(iiif_url: 'https://test.host/images/7777/full/400,300/0/default.jpg'))

helper.add_exhibit_meta_content
Expand Down

0 comments on commit 695bb7c

Please sign in to comment.