Sha256: 788a5c3feff247b8b749729bb75d5b597ab0898196d72d3150daa3ba0f10fbf6
Contents?: true
Size: 508 Bytes
Versions: 1
Compression:
Stored size: 508 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'spec_helper') class InvalidPrinter < Clamsy::BasePrinter ; end describe 'Invalid printer' do describe '> converting docs to pdf' do it 'should raise Clamsy::ImplementationNotFoundError' do tmp_doc = tmp_file('doc') lambda { InvalidPrinter.docs_to_pdf([tmp_doc], "#{__FILE__}.pdf") }. should.raise(Clamsy::ImplementationNotFoundError). message.should.equal("InvalidPrinter.doc_to_pdf not implemented.") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clamsy-0.0.5 | spec/clamsy/invalid_printer_spec.rb |