Sha256: 60192e527dc651f3839ce9f4eb59d8b279fd5559eba8168942b56aabf1b4dbca
Contents?: true
Size: 727 Bytes
Versions: 2
Compression:
Stored size: 727 Bytes
Contents
require 'spec_helper' describe EPUBInfo::Models::Identifier do context 'EPUB2' do subject { EPUBInfo::Models::Identifier.new(Nokogiri::XML(File.new('spec/support/xml/metamorphosis_metadata_epub2.opf')).css('metadata').xpath('.//dc:identifier', EPUBInfo::Utils::DC_NAMESPACE).first) } its(:identifier) { should == 'http://www.gutenberg.org/ebooks/5200' } its(:scheme) { should == 'URI' } end context 'EPUB3' do subject { EPUBInfo::Models::Identifier.new(Nokogiri::XML(File.new('spec/support/xml/wasteland_metadata_epub3.opf')).css('metadata').xpath('.//dc:identifier', EPUBInfo::Utils::DC_NAMESPACE).first) } its(:identifier) { should == 'code.google.com.epub-samples.wasteland-basic' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
epubinfo-0.2.1 | spec/lib/epubinfo/identifier_spec.rb |
epubinfo-0.2.0 | spec/lib/epubinfo/identifier_spec.rb |