summaryrefslogtreecommitdiff
path: root/spec/ruby/library/cgi/unescapeHTML_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/cgi/unescapeHTML_spec.rb')
-rw-r--r--spec/ruby/library/cgi/unescapeHTML_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/library/cgi/unescapeHTML_spec.rb b/spec/ruby/library/cgi/unescapeHTML_spec.rb
index 84b30c6aa6..e43dcc83e5 100644
--- a/spec/ruby/library/cgi/unescapeHTML_spec.rb
+++ b/spec/ruby/library/cgi/unescapeHTML_spec.rb
@@ -1,5 +1,9 @@
require_relative '../../spec_helper'
-require 'cgi'
+begin
+ require 'cgi/escape'
+rescue LoadError
+ require 'cgi'
+end
describe "CGI.unescapeHTML" do
it "unescapes '&amp; &lt; &gt; &quot;' to '& < > \"'" do
td> 2019-07-13Document $~ before dependent global variablesBenoit Daloze 2019-07-13Improve documentation of $LOAD_PATHBenoit Daloze 2019-07-13Document $LOAD_PATH.resolve_feature_path in globals.rdocBenoit Daloze * RDoc does not seem to support documenting singleton object methods, and making $LOAD_PATH a class as a workaround is too weird. 2019-07-13Document a few more RUBY_* constantsBenoit Daloze 2019-07-13Document the long form of global variables and mention aliases on the same lineBenoit Daloze * The longer forms are self-explanatory and I believe more often used. * Same for ARGV and ARGF, describe them there and mention $* and $< just refer to them. 2019-06-18[DOC] non-nil `$,`,`$;` will be deprecated [ci skip]Kazuhiro NISHIYAMA ``` % ruby -e '$,=""; $;=""' -e:1: warning: non-nil $, will be deprecated -e:1: warning: non-nil $; will be deprecated ```