spec/citeproc/ruby/formats/default_spec.rb in citeproc-ruby-1.0.5 vs spec/citeproc/ruby/formats/default_spec.rb in citeproc-ruby-1.0.6
- old
+ new
@@ -104,11 +104,14 @@
it 'supports title case' do
node[:'text-case'] = 'title'
expect(format.apply('The adventures of Huckleberry Finn', node)).to eq('The Adventures of Huckleberry Finn')
- expect(format.apply("This IS a pen that is a smith pencil", node)).to eq('This IS a Pen That Is a Smith Pencil')
- #format.apply('of mice and men', node).should == 'Of Mice And Men'
+ expect(format.apply('This IS a pen that is a smith pencil', node)).to eq('This IS a Pen That Is a Smith Pencil')
+ expect(format.apply('of mice and men', node)).to eq('Of Mice and Men')
+ expect(format.apply('history of the word the', node)).to eq('History of the Word The')
+ expect(format.apply('faster than the speed of sound', node)).to eq('Faster than the Speed of Sound')
+ expect(format.apply('on the drug-resistance of enteric bacteria', node)).to eq('On the Drug-Resistance of Enteric Bacteria')
end
end
describe 'strip-periods' do
before { node[:'strip-periods'] = true }