spec/language_spec.rb in onix-0.7.8 vs spec/language_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::Language" do
before(:each) do
data_path = File.join(File.dirname(__FILE__),"..","data")
file1 = File.join(data_path, "language.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
lan = ONIX::Language.from_xml(@root.to_s)