require'spec_helper'feature'Group'dodescribe'description'dolet(:group){create(:group)}let(:path){group_path(group)}beforedologin_as(:admin)endit'parses Markdown'dogroup.update_attribute(:description,'This is **my** group')visitpathexpect(page).tohave_css('.description > p > strong')endit'passes through html-pipeline'dogroup.update_attribute(:description,'This group is the :poop:')visitpathexpect(page).tohave_css('.description > p > img')endit'sanitizes unwanted tags'dogroup.update_attribute(:description,'# Group Description')visitpathexpect(page).not_tohave_css('.description h1')endit'permits `rel` attribute on links'dogroup.update_attribute(:description,'https://google.com/')visitpathexpect(page).tohave_css('.description a[rel]')endendend