diff options
Diffstat (limited to 'spec/ruby/library/net/http/httpheader')
34 files changed, 82 insertions, 82 deletions
diff --git a/spec/ruby/library/net/http/httpheader/add_field_spec.rb b/spec/ruby/library/net/http/httpheader/add_field_spec.rb index b736a92694..882d5ac5bb 100644 --- a/spec/ruby/library/net/http/httpheader/add_field_spec.rb +++ b/spec/ruby/library/net/http/httpheader/add_field_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#add_field when passed key, value" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/basic_auth_spec.rb b/spec/ruby/library/net/http/httpheader/basic_auth_spec.rb index b9ed792d46..fa2a710fe1 100644 --- a/spec/ruby/library/net/http/httpheader/basic_auth_spec.rb +++ b/spec/ruby/library/net/http/httpheader/basic_auth_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#basic_auth when passed account, password" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/canonical_each_spec.rb b/spec/ruby/library/net/http/httpheader/canonical_each_spec.rb index a891c12d80..0dddd3049b 100644 --- a/spec/ruby/library/net/http/httpheader/canonical_each_spec.rb +++ b/spec/ruby/library/net/http/httpheader/canonical_each_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/each_capitalized', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/each_capitalized' describe "Net::HTTPHeader#canonical_each" do it_behaves_like :net_httpheader_each_capitalized, :canonical_each diff --git a/spec/ruby/library/net/http/httpheader/chunked_spec.rb b/spec/ruby/library/net/http/httpheader/chunked_spec.rb index 2b08baf34c..96b758981b 100644 --- a/spec/ruby/library/net/http/httpheader/chunked_spec.rb +++ b/spec/ruby/library/net/http/httpheader/chunked_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#chunked?" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/content_length_spec.rb b/spec/ruby/library/net/http/httpheader/content_length_spec.rb index d93eb3a608..44c971c98e 100644 --- a/spec/ruby/library/net/http/httpheader/content_length_spec.rb +++ b/spec/ruby/library/net/http/httpheader/content_length_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#content_length" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/content_range_spec.rb b/spec/ruby/library/net/http/httpheader/content_range_spec.rb index dc601fb365..23dc92348b 100644 --- a/spec/ruby/library/net/http/httpheader/content_range_spec.rb +++ b/spec/ruby/library/net/http/httpheader/content_range_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#content_range" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/content_type_spec.rb b/spec/ruby/library/net/http/httpheader/content_type_spec.rb index 7c3dfba7e7..1f8b4ba326 100644 --- a/spec/ruby/library/net/http/httpheader/content_type_spec.rb +++ b/spec/ruby/library/net/http/httpheader/content_type_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/set_content_type', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/set_content_type' describe "Net::HTTPHeader#content_type" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/delete_spec.rb b/spec/ruby/library/net/http/httpheader/delete_spec.rb index 9adbfd7813..603ae198de 100644 --- a/spec/ruby/library/net/http/httpheader/delete_spec.rb +++ b/spec/ruby/library/net/http/httpheader/delete_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#delete when passed key" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/each_capitalized_name_spec.rb b/spec/ruby/library/net/http/httpheader/each_capitalized_name_spec.rb index 7adba9dec5..1af2c6939c 100644 --- a/spec/ruby/library/net/http/httpheader/each_capitalized_name_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_capitalized_name_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#each_capitalized_name" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/each_capitalized_spec.rb b/spec/ruby/library/net/http/httpheader/each_capitalized_spec.rb index 1dcf18a9d1..49298210bb 100644 --- a/spec/ruby/library/net/http/httpheader/each_capitalized_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_capitalized_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/each_capitalized', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/each_capitalized' describe "Net::HTTPHeader#each_capitalized" do it_behaves_like :net_httpheader_each_capitalized, :each_capitalized diff --git a/spec/ruby/library/net/http/httpheader/each_header_spec.rb b/spec/ruby/library/net/http/httpheader/each_header_spec.rb index 00d5894282..19634a001b 100644 --- a/spec/ruby/library/net/http/httpheader/each_header_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_header_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/each_header', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/each_header' describe "Net::HTTPHeader#each_header" do it_behaves_like :net_httpheader_each_header, :each_header diff --git a/spec/ruby/library/net/http/httpheader/each_key_spec.rb b/spec/ruby/library/net/http/httpheader/each_key_spec.rb index 5c81830be6..ebb17d2eac 100644 --- a/spec/ruby/library/net/http/httpheader/each_key_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_key_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/each_name', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/each_name' describe "Net::HTTPHeader#each_key" do it_behaves_like :net_httpheader_each_name, :each_key diff --git a/spec/ruby/library/net/http/httpheader/each_name_spec.rb b/spec/ruby/library/net/http/httpheader/each_name_spec.rb index e785ae249a..f4533ebcfb 100644 --- a/spec/ruby/library/net/http/httpheader/each_name_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_name_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/each_name', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/each_name' describe "Net::HTTPHeader#each_name" do it_behaves_like :net_httpheader_each_name, :each_name diff --git a/spec/ruby/library/net/http/httpheader/each_spec.rb b/spec/ruby/library/net/http/httpheader/each_spec.rb index e8fb6713c3..7ba8434f75 100644 --- a/spec/ruby/library/net/http/httpheader/each_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/each_header', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/each_header' describe "Net::HTTPHeader#each" do it_behaves_like :net_httpheader_each_header, :each diff --git a/spec/ruby/library/net/http/httpheader/each_value_spec.rb b/spec/ruby/library/net/http/httpheader/each_value_spec.rb index 1adb723a53..3224de7703 100644 --- a/spec/ruby/library/net/http/httpheader/each_value_spec.rb +++ b/spec/ruby/library/net/http/httpheader/each_value_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#each_value" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/element_reference_spec.rb b/spec/ruby/library/net/http/httpheader/element_reference_spec.rb index bfe6b48ad4..4a35e20d20 100644 --- a/spec/ruby/library/net/http/httpheader/element_reference_spec.rb +++ b/spec/ruby/library/net/http/httpheader/element_reference_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#[] when passed key" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/element_set_spec.rb b/spec/ruby/library/net/http/httpheader/element_set_spec.rb index a5a2900e94..e9ad64fafc 100644 --- a/spec/ruby/library/net/http/httpheader/element_set_spec.rb +++ b/spec/ruby/library/net/http/httpheader/element_set_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#[]= when passed key, value" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/fetch_spec.rb b/spec/ruby/library/net/http/httpheader/fetch_spec.rb index 7182c4396e..4d608cdb0d 100644 --- a/spec/ruby/library/net/http/httpheader/fetch_spec.rb +++ b/spec/ruby/library/net/http/httpheader/fetch_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#fetch" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/form_data_spec.rb b/spec/ruby/library/net/http/httpheader/form_data_spec.rb index 7781990824..9b29a03159 100644 --- a/spec/ruby/library/net/http/httpheader/form_data_spec.rb +++ b/spec/ruby/library/net/http/httpheader/form_data_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/set_form_data', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/set_form_data' describe "Net::HTTPHeader#form_data=" do it_behaves_like :net_httpheader_set_form_data, :form_data= diff --git a/spec/ruby/library/net/http/httpheader/get_fields_spec.rb b/spec/ruby/library/net/http/httpheader/get_fields_spec.rb index f7828f752c..1b623bf2a3 100644 --- a/spec/ruby/library/net/http/httpheader/get_fields_spec.rb +++ b/spec/ruby/library/net/http/httpheader/get_fields_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#get_fields when passed key" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/initialize_http_header_spec.rb b/spec/ruby/library/net/http/httpheader/initialize_http_header_spec.rb index ffb56642d4..92a0b82d60 100644 --- a/spec/ruby/library/net/http/httpheader/initialize_http_header_spec.rb +++ b/spec/ruby/library/net/http/httpheader/initialize_http_header_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#initialize_http_header when passed Hash" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/key_spec.rb b/spec/ruby/library/net/http/httpheader/key_spec.rb index 0cb5f711dc..9099024229 100644 --- a/spec/ruby/library/net/http/httpheader/key_spec.rb +++ b/spec/ruby/library/net/http/httpheader/key_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#key? when passed key" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/length_spec.rb b/spec/ruby/library/net/http/httpheader/length_spec.rb index 50cb1c1f7f..0d1da149f4 100644 --- a/spec/ruby/library/net/http/httpheader/length_spec.rb +++ b/spec/ruby/library/net/http/httpheader/length_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/size', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/size' describe "Net::HTTPHeader#length" do it_behaves_like :net_httpheader_size, :length diff --git a/spec/ruby/library/net/http/httpheader/main_type_spec.rb b/spec/ruby/library/net/http/httpheader/main_type_spec.rb index 34e2ddbc65..3e18de6b5b 100644 --- a/spec/ruby/library/net/http/httpheader/main_type_spec.rb +++ b/spec/ruby/library/net/http/httpheader/main_type_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#main_type" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/proxy_basic_auth_spec.rb b/spec/ruby/library/net/http/httpheader/proxy_basic_auth_spec.rb index 5e7d87af36..8b576ee164 100644 --- a/spec/ruby/library/net/http/httpheader/proxy_basic_auth_spec.rb +++ b/spec/ruby/library/net/http/httpheader/proxy_basic_auth_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#proxy_basic_auth when passed account, password" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/range_length_spec.rb b/spec/ruby/library/net/http/httpheader/range_length_spec.rb index ec3b00d805..4415c8e5ba 100644 --- a/spec/ruby/library/net/http/httpheader/range_length_spec.rb +++ b/spec/ruby/library/net/http/httpheader/range_length_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#range_length" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/range_spec.rb b/spec/ruby/library/net/http/httpheader/range_spec.rb index d71d2ed598..5f06e03a1c 100644 --- a/spec/ruby/library/net/http/httpheader/range_spec.rb +++ b/spec/ruby/library/net/http/httpheader/range_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/set_range', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/set_range' describe "Net::HTTPHeader#range" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/set_content_type_spec.rb b/spec/ruby/library/net/http/httpheader/set_content_type_spec.rb index b9a62154ad..125f7a7e0d 100644 --- a/spec/ruby/library/net/http/httpheader/set_content_type_spec.rb +++ b/spec/ruby/library/net/http/httpheader/set_content_type_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/set_content_type', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/set_content_type' describe "Net::HTTPHeader#set_content_type" do it_behaves_like :net_httpheader_set_content_type, :set_content_type diff --git a/spec/ruby/library/net/http/httpheader/set_form_data_spec.rb b/spec/ruby/library/net/http/httpheader/set_form_data_spec.rb index e675437ba4..14c66ae01c 100644 --- a/spec/ruby/library/net/http/httpheader/set_form_data_spec.rb +++ b/spec/ruby/library/net/http/httpheader/set_form_data_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/set_form_data', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/set_form_data' describe "Net::HTTPHeader#set_form_data" do it_behaves_like :net_httpheader_set_form_data, :set_form_data diff --git a/spec/ruby/library/net/http/httpheader/set_range_spec.rb b/spec/ruby/library/net/http/httpheader/set_range_spec.rb index af3f00f99c..85b9c50422 100644 --- a/spec/ruby/library/net/http/httpheader/set_range_spec.rb +++ b/spec/ruby/library/net/http/httpheader/set_range_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/set_range', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/set_range' describe "Net::HTTPHeader#set_range" do it_behaves_like :net_httpheader_set_range, :set_range diff --git a/spec/ruby/library/net/http/httpheader/size_spec.rb b/spec/ruby/library/net/http/httpheader/size_spec.rb index 3ea3969046..a7d78f96e0 100644 --- a/spec/ruby/library/net/http/httpheader/size_spec.rb +++ b/spec/ruby/library/net/http/httpheader/size_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/size', __FILE__) +require_relative 'fixtures/classes' +require_relative 'shared/size' describe "Net::HTTPHeader#size" do it_behaves_like :net_httpheader_size, :size diff --git a/spec/ruby/library/net/http/httpheader/sub_type_spec.rb b/spec/ruby/library/net/http/httpheader/sub_type_spec.rb index 65cae5a3f3..3c73ca0027 100644 --- a/spec/ruby/library/net/http/httpheader/sub_type_spec.rb +++ b/spec/ruby/library/net/http/httpheader/sub_type_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#sub_type" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/to_hash_spec.rb b/spec/ruby/library/net/http/httpheader/to_hash_spec.rb index 4b59c78c90..8c1d36c30a 100644 --- a/spec/ruby/library/net/http/httpheader/to_hash_spec.rb +++ b/spec/ruby/library/net/http/httpheader/to_hash_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#to_hash" do before :each do diff --git a/spec/ruby/library/net/http/httpheader/type_params_spec.rb b/spec/ruby/library/net/http/httpheader/type_params_spec.rb index f4cd54f101..e77be7ea85 100644 --- a/spec/ruby/library/net/http/httpheader/type_params_spec.rb +++ b/spec/ruby/library/net/http/httpheader/type_params_spec.rb @@ -1,6 +1,6 @@ -require File.expand_path('../../../../../spec_helper', __FILE__) +require_relative '../../../../spec_helper' require 'net/http' -require File.expand_path('../fixtures/classes', __FILE__) +require_relative 'fixtures/classes' describe "Net::HTTPHeader#type_params" do before :each do |