spec/presenters/blacklight/field_presenter_spec.rb in blacklight-8.0.0.beta4 vs spec/presenters/blacklight/field_presenter_spec.rb in blacklight-8.0.0.beta5
- old
+ new
@@ -49,16 +49,16 @@
subject(:result) { presenter.render }
context 'when an explicit html value is provided' do
let(:options) { { value: '<b>val1</b>' } }
- it { is_expected.to eq '<b>val1</b>' }
+ it { is_expected.not_to be_html_safe }
end
context 'when an explicit array value with unsafe characters is provided' do
let(:options) { { value: ['<a', 'b'] } }
- it { is_expected.to eq '<a and b' }
+ it { is_expected.to eq('<a and b').and be_html_safe }
end
context 'when an explicit array value is provided' do
let(:options) { { value: %w[a b c] } }