Skip to content

A platform for community discussion. Free, open, simple.

DEV: correct spec making bad assumptions

Sam Saffron89c4332ac137
diff --git a/spec/requests/groups_controller_spec.rb b/spec/requests/groups_controller_spec.rb
index 912533484d8..83acf8892d4 100644
--- a/spec/requests/groups_controller_spec.rb
+++ b/spec/requests/groups_controller_spec.rb
@@ -292,7 +292,7 @@ describe GroupsController do
end
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"
@@ -302,8 +302,9 @@ describe GroupsController do
property: 'og:title', content: group.name
})
+ # note this uses an excerpt so it strips html
expect(response.body).to have_tag(:meta, with: {
- property: 'og:description', content: group.bio_cooked
+ property: 'og:description', content: 'testing group bio'
})
end