spec/citeproc/ruby/formats/html_spec.rb in citeproc-ruby-1.1.5 vs spec/citeproc/ruby/formats/html_spec.rb in citeproc-ruby-1.1.6

- old
+ new

@@ -24,9 +24,14 @@ it 'escapes entities in the original text' do node[:'text-case'] = 'lowercase' expect(format.apply('Foo & BAR', node)).to eq('foo &amp; bar') end + it 'does not not apply casing to escaped entities' do + node[:'text-case'] = 'uppercase' + expect(format.apply('Foo & BAR', node)).to eq('FOO &amp; BAR') + end + it 'escapes entities in affixes' do node[:prefix] = '<' node[:suffix] = '>' expect(format.apply('foo', node)).to eq('&lt;foo&gt;') end