summaryrefslogtreecommitdiff
path: root/spec/ruby/library/rexml/text/normalize_spec.rb
blob: ce3b2b3b5f5d33625a36dd9be9b9bcea1c6679a2 (plain)
1
2
3
4
5
6
7
8
require_relative '../../../spec_helper'
require 'rexml/document'

describe "REXML::Text.normalize" do
  it "escapes a string with <, >, &, ' and \" " do
    REXML::Text.normalize("< > & \" '").should == "&lt; &gt; &amp; &quot; &apos;"
  end
end