Sha256: b03b528d2015183b64e302ac2d3a6fdc61127d4bf8f515e24cc683cacf1def54
Contents?: true
Size: 519 Bytes
Versions: 6
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' module GutenbergRdf describe ".parse" do let(:file) { StringIO.new('<rdf:RDF xmlns:dcterms="http://purl.org/dc/terms/" xmlns:pgterms="http://www.gutenberg.org/2009/pgterms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><pgterms:ebook rdf:about="ebooks/98765"/></rdf:RDF>') } it "expects an Rdf object" do File.stub(:new).and_return(file) book = GutenbergRdf.parse(file) expect(book.class).to be Rdf expect(book.id).to eql '98765' end end end
Version data entries
6 entries across 6 versions & 1 rubygems