Skip to content

Commit

Permalink
[Issue #37] fixes REXML bug introduced in Ruby 1.9.3-p392
Browse files Browse the repository at this point in the history
  • Loading branch information
robuye authored and rubiii committed Mar 3, 2013
1 parent 661cc21 commit 00230c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/nori/xml_utility_node.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "rexml/text"
require "rexml/document"
require "date"
require "time"
require "yaml"
Expand Down
5 changes: 5 additions & 0 deletions spec/nori/nori_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

let(:parser) { parser }

it "should work with unnormalized characters" do
xml = '<root>&amp;</root>'
parse(xml).should == { 'root' => "&" }
end

it "should transform a simple tag with content" do
xml = "<tag>This is the contents</tag>"
parse(xml).should == { 'tag' => 'This is the contents' }
Expand Down

0 comments on commit 00230c1

Please sign in to comment.