require 'spec_helper' module GutenbergRdf describe ".parse" do let(:file) { StringIO.new('') } 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