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

ruby_version_is ''...'3.0' do
  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
end