summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/httpresponse
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net/http/httpresponse')
-rw-r--r--spec/ruby/library/net/http/httpresponse/body_permitted_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/body_spec.rb4
-rw-r--r--spec/ruby/library/net/http/httpresponse/code_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/code_type_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/entity_spec.rb4
-rw-r--r--spec/ruby/library/net/http/httpresponse/error_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/error_type_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/exception_type_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/header_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/http_version_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/initialize_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/inspect_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/message_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/msg_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/read_body_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/read_header_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/read_new_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/reading_body_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/response_spec.rb2
-rw-r--r--spec/ruby/library/net/http/httpresponse/value_spec.rb2
20 files changed, 22 insertions, 22 deletions
diff --git a/spec/ruby/library/net/http/httpresponse/body_permitted_spec.rb b/spec/ruby/library/net/http/httpresponse/body_permitted_spec.rb
index 9688b0759e..68a0454f79 100644
--- a/spec/ruby/library/net/http/httpresponse/body_permitted_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/body_permitted_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse.body_permitted?" do
diff --git a/spec/ruby/library/net/http/httpresponse/body_spec.rb b/spec/ruby/library/net/http/httpresponse/body_spec.rb
index 169a6687a2..79569441f1 100644
--- a/spec/ruby/library/net/http/httpresponse/body_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/body_spec.rb
@@ -1,6 +1,6 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
-require File.expand_path('../shared/body', __FILE__)
+require_relative 'shared/body'
describe "Net::HTTPResponse#body" do
it_behaves_like :net_httpresponse_body, :body
diff --git a/spec/ruby/library/net/http/httpresponse/code_spec.rb b/spec/ruby/library/net/http/httpresponse/code_spec.rb
index 9430af3100..114277cb43 100644
--- a/spec/ruby/library/net/http/httpresponse/code_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/code_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#code" do
diff --git a/spec/ruby/library/net/http/httpresponse/code_type_spec.rb b/spec/ruby/library/net/http/httpresponse/code_type_spec.rb
index 899c2ed9bf..fa2d572e9a 100644
--- a/spec/ruby/library/net/http/httpresponse/code_type_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/code_type_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#code_type" do
diff --git a/spec/ruby/library/net/http/httpresponse/entity_spec.rb b/spec/ruby/library/net/http/httpresponse/entity_spec.rb
index 3b6be5eb00..f1639042c1 100644
--- a/spec/ruby/library/net/http/httpresponse/entity_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/entity_spec.rb
@@ -1,6 +1,6 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
-require File.expand_path('../shared/body', __FILE__)
+require_relative 'shared/body'
describe "Net::HTTPResponse#entity" do
it_behaves_like :net_httpresponse_body, :entity
diff --git a/spec/ruby/library/net/http/httpresponse/error_spec.rb b/spec/ruby/library/net/http/httpresponse/error_spec.rb
index 7b0f61e520..24297d5fad 100644
--- a/spec/ruby/library/net/http/httpresponse/error_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/error_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#error!" do
diff --git a/spec/ruby/library/net/http/httpresponse/error_type_spec.rb b/spec/ruby/library/net/http/httpresponse/error_type_spec.rb
index a6b0155998..9e45e8fac2 100644
--- a/spec/ruby/library/net/http/httpresponse/error_type_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/error_type_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#error_type" do
diff --git a/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb b/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb
index e1a48e0c12..74839463b7 100644
--- a/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/exception_type_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse.exception_type" do
diff --git a/spec/ruby/library/net/http/httpresponse/header_spec.rb b/spec/ruby/library/net/http/httpresponse/header_spec.rb
index 21e3dec418..a9615feda8 100644
--- a/spec/ruby/library/net/http/httpresponse/header_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/header_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#header" do
diff --git a/spec/ruby/library/net/http/httpresponse/http_version_spec.rb b/spec/ruby/library/net/http/httpresponse/http_version_spec.rb
index a1192c1cbe..db85696d77 100644
--- a/spec/ruby/library/net/http/httpresponse/http_version_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/http_version_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#http_version" do
diff --git a/spec/ruby/library/net/http/httpresponse/initialize_spec.rb b/spec/ruby/library/net/http/httpresponse/initialize_spec.rb
index dcb6da3afe..eb77e2e277 100644
--- a/spec/ruby/library/net/http/httpresponse/initialize_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/initialize_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#initialize when passed http_version, response_code, response_message" do
diff --git a/spec/ruby/library/net/http/httpresponse/inspect_spec.rb b/spec/ruby/library/net/http/httpresponse/inspect_spec.rb
index f5463afa96..1e1a2c7cc7 100644
--- a/spec/ruby/library/net/http/httpresponse/inspect_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/inspect_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
require "stringio"
diff --git a/spec/ruby/library/net/http/httpresponse/message_spec.rb b/spec/ruby/library/net/http/httpresponse/message_spec.rb
index 57a927aff0..ae8e3678a1 100644
--- a/spec/ruby/library/net/http/httpresponse/message_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/message_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#message" do
diff --git a/spec/ruby/library/net/http/httpresponse/msg_spec.rb b/spec/ruby/library/net/http/httpresponse/msg_spec.rb
index 9b19d34234..0e5e7eb4aa 100644
--- a/spec/ruby/library/net/http/httpresponse/msg_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/msg_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#msg" do
diff --git a/spec/ruby/library/net/http/httpresponse/read_body_spec.rb b/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
index d71b4144f4..f1fc0f519b 100644
--- a/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/read_body_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#read_body" do
diff --git a/spec/ruby/library/net/http/httpresponse/read_header_spec.rb b/spec/ruby/library/net/http/httpresponse/read_header_spec.rb
index 6bbabdfe10..6af8c6bd6a 100644
--- a/spec/ruby/library/net/http/httpresponse/read_header_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/read_header_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#read_header" do
diff --git a/spec/ruby/library/net/http/httpresponse/read_new_spec.rb b/spec/ruby/library/net/http/httpresponse/read_new_spec.rb
index e2fb0f1a05..73c7ddc100 100644
--- a/spec/ruby/library/net/http/httpresponse/read_new_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/read_new_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse.read_new" do
diff --git a/spec/ruby/library/net/http/httpresponse/reading_body_spec.rb b/spec/ruby/library/net/http/httpresponse/reading_body_spec.rb
index 5e53e00adc..ebdab891e1 100644
--- a/spec/ruby/library/net/http/httpresponse/reading_body_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/reading_body_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
require "stringio"
diff --git a/spec/ruby/library/net/http/httpresponse/response_spec.rb b/spec/ruby/library/net/http/httpresponse/response_spec.rb
index 826320be9e..f6035f3695 100644
--- a/spec/ruby/library/net/http/httpresponse/response_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/response_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#response" do
diff --git a/spec/ruby/library/net/http/httpresponse/value_spec.rb b/spec/ruby/library/net/http/httpresponse/value_spec.rb
index 7e4f7863eb..c53d724b40 100644
--- a/spec/ruby/library/net/http/httpresponse/value_spec.rb
+++ b/spec/ruby/library/net/http/httpresponse/value_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../../../spec_helper', __FILE__)
+require_relative '../../../../spec_helper'
require 'net/http'
describe "Net::HTTPResponse#value" do