spec/spec_helper.rb in inky-rb-1.3.6.1 vs spec/spec_helper.rb in inky-rb-1.3.6.2

- old
+ new

@@ -1,14 +1,13 @@ require 'inky' -require 'rexml/document' def compare(input, expected) inky = Inky::Core.new output = inky.release_the_kraken(input) # TODO: Figure out a better way to do html compare in ruby.. # this is overly dependent on things like class ordering, making it # fragile - output_str = REXML::Document.new(output).to_s.gsub(/\s/, '') - expected_str = REXML::Document.new(expected).to_s.gsub(/\s/, '') + output_str = Nokogiri::XML(output).to_s.gsub(/\s/, '') + expected_str = Nokogiri::XML(expected).to_s.gsub(/\s/, '') expect(output_str).to eql(expected_str) end