spec/other_text_spec.rb in onix-0.7.8 vs spec/other_text_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::OtherText" do
before(:each) do
data_path = File.join(File.dirname(__FILE__),"..","data")
file1 = File.join(data_path, "other_text.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
ot = ONIX::OtherText.from_xml(@root.to_s)