diff --git a/spec/helpers/format_helper_spec.rb b/spec/helpers/format_helper_spec.rb index 4e64eb94..31adf107 100644 --- a/spec/helpers/format_helper_spec.rb +++ b/spec/helpers/format_helper_spec.rb @@ -16,5 +16,13 @@ describe FormatHelper, type: :helper do it 'should return HTML for header markdown' do expect(markdown('# this is my header')).to eq "
<em>a</em>
\n" + end + + it 'removes unallowed elements' do + expect(markdown('**', false)).to eq "a
\n" + end end end