Remove "User's Diary" from diary entry og:title
This commit is contained in:
parent
6d0c291332
commit
eaabf7bb59
3 changed files with 13 additions and 1 deletions
|
@ -648,6 +648,17 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
end
|
||||
|
||||
def test_show_og_title
|
||||
user = create(:user)
|
||||
diary_entry = create(:diary_entry, :user => user, :title => "The Important Blog Post")
|
||||
|
||||
get diary_entry_path(user, diary_entry)
|
||||
assert_response :success
|
||||
assert_dom "head meta[property='og:title']" do
|
||||
assert_dom "> @content", "The Important Blog Post"
|
||||
end
|
||||
end
|
||||
|
||||
def test_show_og_image_with_no_image
|
||||
user = create(:user)
|
||||
diary_entry = create(:diary_entry, :user => user, :body => "nothing")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue