spec/lib/epubinfo_spec.rb in epubinfo-0.2.4 vs spec/lib/epubinfo_spec.rb in epubinfo-0.3.0
- old
+ new
@@ -6,9 +6,10 @@
describe '#get' do
it 'calls parser' do
document = EPUBInfo::Parser.parse(epub_path).metadata_document
parser = mock
parser.stub(:metadata_document)
+ parser.stub(:drm_protected?)
EPUBInfo::Parser.should_receive(:parse) { parser }
EPUBInfo.get(epub_path)
end
it 'instanstiates a book model and returns it' do