diff options
Diffstat (limited to 'spec/ruby/library/cgi/http_header_spec.rb')
| -rw-r--r-- | spec/ruby/library/cgi/http_header_spec.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/spec/ruby/library/cgi/http_header_spec.rb b/spec/ruby/library/cgi/http_header_spec.rb index 1960d009e4..8d9f3fe9b8 100644 --- a/spec/ruby/library/cgi/http_header_spec.rb +++ b/spec/ruby/library/cgi/http_header_spec.rb @@ -1,8 +1,11 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require 'cgi' +require_relative '../../spec_helper' -require File.expand_path('../shared/http_header', __FILE__) +ruby_version_is ""..."4.0" do + require 'cgi' -describe "CGI#http_header" do - it_behaves_like(:cgi_http_header, :http_header) + require_relative 'shared/http_header' + + describe "CGI#http_header" do + it_behaves_like :cgi_http_header, :http_header + end end |
