diff options
Diffstat (limited to 'spec/ruby/library/cgi/unescape_spec.rb')
-rw-r--r-- | spec/ruby/library/cgi/unescape_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/library/cgi/unescape_spec.rb b/spec/ruby/library/cgi/unescape_spec.rb index c593e24b4a..52e1cb0243 100644 --- a/spec/ruby/library/cgi/unescape_spec.rb +++ b/spec/ruby/library/cgi/unescape_spec.rb @@ -1,6 +1,10 @@ # -*- encoding: utf-8 -*- require_relative '../../spec_helper' -require 'cgi' +begin + require 'cgi/escape' +rescue LoadError + require 'cgi' +end describe "CGI.unescape" do it "url-decodes the passed argument" do |