diff --git a/spec/ext/action_view_spec.rb b/spec/ext/action_view_spec.rb index bba4c3c..c460c0a 100644 --- a/spec/ext/action_view_spec.rb +++ b/spec/ext/action_view_spec.rb @@ -16,4 +16,8 @@ markup = ' &' expect(@view.ap(markup)).to eq('
" &<hello>"
') end + + it 'users HTML and does not set output to HTML safe' do + expect(@view.ap('

Hello World

')).not_to be_html_safe + end end