spec/series_identifier_spec.rb in onix-0.7.8 vs spec/series_identifier_spec.rb in onix-0.8.0

- old
+ new

@@ -1,16 +1,14 @@ # coding: utf-8 -$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') +require File.dirname(__FILE__) + '/spec_helper.rb' -require 'onix' - context "ONIX::SeriesIdentifier" do before(:each) do data_path = File.join(File.dirname(__FILE__),"..","data") file1 = File.join(data_path, "series_identifier.xml") - @doc = LibXML::XML::Document.file(file1) + @doc = Nokogiri::XML::Document.parse(File.read(file1)) @root = @doc.root end specify "should correctly convert to a string" do series = ONIX::SeriesIdentifier.from_xml(@root.to_s)