Sha256: 22f43868d270455f4200ccbabb483d03caaf41d63d73e38d52c0771589fe9f86
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' module CiteProc describe Engine do it 'cannot be instantiated' do lambda { Engine.new }.should raise_error(NoMethodError) end describe 'subclasses' do let(:subject) { Class.new(Engine).new { |e| e.processor = double(:processor) } } it 'can be instantiated' do subject.should_not be nil end it 'can be started' do expect { subject.start }.to change { subject.running? }.from(false).to(true) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citeproc-0.0.3 | spec/citeproc/engine_spec.rb |
citeproc-0.0.2 | spec/citeproc/engine_spec.rb |