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

ruby_version_is ''...'2.8' 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