spec/citeproc/ruby/engine_spec.rb in citeproc-ruby-1.1.1 vs spec/citeproc/ruby/engine_spec.rb in citeproc-ruby-1.1.2

- old
+ new

@@ -38,10 +38,11 @@ describe 'when there are items in the processor' do before(:each) do cp << items(:grammatology).data cp << items(:knuth1968).data cp << items(:difference).data + cp << items(:literal_date).data end it 'renders the reference for the given id' do expect(cp.render(:bibliography, :id => 'grammatology')).to eq(['Derrida, J. (1976). Of Grammatology (corrected ed.). Baltimore: Johns Hopkins University Press.']) expect(cp.render(:citation, :id => 'grammatology', :locator => '3-4')).to eq('(Derrida, 1976, pp. 3-4)') @@ -59,9 +60,13 @@ it 'overrides locales if the processor option is set' do expect(cp.render(:bibliography, :id => 'difference')).to eq(['Derrida, J. (1967). L’écriture et la différence (1st ed.). Paris: Éditions du Seuil.']) cp.options[:allow_locale_overrides] = true expect(cp.render(:bibliography, :id => 'difference')).to eq(['Derrida, J. (1967). L’écriture et la différence (1ʳᵉ éd.). Paris: Éditions du Seuil.']) + end + + it 'can handle literal dates' do + expect(cp.render(:bibliography, :id => 'literal_date')).to eq(['Derrida, J. (sometime in 1967). L’écriture et la différence (1st ed.). Paris: Éditions du Seuil.']) end end end describe '#process' do