DEV: correct spec making bad assumptions

bio_cooked is not meant to be touched directly, on save we "cook" the raw
bio.
This commit is contained in:
Sam Saffron 2019-06-12 16:31:50 +10:00
parent 0a1b16bb16
commit 89c4332ac1
1 changed files with 3 additions and 2 deletions

View File

@ -292,7 +292,7 @@ describe GroupsController do
end end
it 'should respond to HTML' do it 'should respond to HTML' do
group.update_attribute(:bio_cooked, 'testing group bio') group.update!(bio_raw: 'testing **group** bio')
get "/groups/#{group.name}.html" get "/groups/#{group.name}.html"
@ -302,8 +302,9 @@ describe GroupsController do
property: 'og:title', content: group.name property: 'og:title', content: group.name
}) })
# note this uses an excerpt so it strips html
expect(response.body).to have_tag(:meta, with: { expect(response.body).to have_tag(:meta, with: {
property: 'og:description', content: group.bio_cooked property: 'og:description', content: 'testing group bio'
}) })
end end