Sha256: 21a62f10415399c3c95c829ef41ed103058757d5ddd76320dccd3f1d09be8b91

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

require 'spec_helper'

module CiteProc
  describe Processor do
    before { Class.new(Engine) }
    
    let(:subject) { Processor.new }
    
    it { should_not be nil }
    

		describe '#bibliography (generates the bibliography)' do
			
			describe 'when no items have been processed' do
				
				it 'returns an empty bibliography'
				
				# it 'returns a bibliography of all registered items if invoked with :all'
				
			end
			
			describe 'when items have been processed' do
				
				it 'returns a bibliography containing all cited items'

				# it 'returns a bibliography of all registered items if invoked with :all'
				
				describe 'when invoked with a block as filter' do
				
					it 'returns an empty bibliography if the block always returns false'
					
					it 'returns the full bibliography if the block always returns true'
					
					it 'returns a bibliography with all items for which the block returns true'
					
				end
				
				describe 'when passed a hash as argument' do
				
					it 'fails if the hash is no valid selector'
					
					it 'creates a selector from the hash and returns a bibliography containing all matching items'
					
				end
				
			end
			
		end
		
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citeproc-0.0.3 spec/citeproc/processor_spec.rb