diff options
Diffstat (limited to 'spec/ruby/library/rexml/document')
13 files changed, 13 insertions, 13 deletions
diff --git a/spec/ruby/library/rexml/document/add_element_spec.rb b/spec/ruby/library/rexml/document/add_element_spec.rb index 03c95727e2..42981d6465 100644 --- a/spec/ruby/library/rexml/document/add_element_spec.rb +++ b/spec/ruby/library/rexml/document/add_element_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#add_element" do it "adds arg1 with attributes arg2 as root node" do diff --git a/spec/ruby/library/rexml/document/add_spec.rb b/spec/ruby/library/rexml/document/add_spec.rb index 484731fe9b..a200da1e3d 100644 --- a/spec/ruby/library/rexml/document/add_spec.rb +++ b/spec/ruby/library/rexml/document/add_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' # This spec defines Document#add and Document#<< diff --git a/spec/ruby/library/rexml/document/clone_spec.rb b/spec/ruby/library/rexml/document/clone_spec.rb index cf333bf4df..4aebb6f156 100644 --- a/spec/ruby/library/rexml/document/clone_spec.rb +++ b/spec/ruby/library/rexml/document/clone_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' # According to the MRI documentation (http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html), # clone's behavior "should be obvious". Apparently "obvious" means cloning diff --git a/spec/ruby/library/rexml/document/doctype_spec.rb b/spec/ruby/library/rexml/document/doctype_spec.rb index 5f277f6ad6..b919b071e1 100644 --- a/spec/ruby/library/rexml/document/doctype_spec.rb +++ b/spec/ruby/library/rexml/document/doctype_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#doctype" do it "returns the doctype" do diff --git a/spec/ruby/library/rexml/document/encoding_spec.rb b/spec/ruby/library/rexml/document/encoding_spec.rb index d20be0f7b7..343e0ee45f 100644 --- a/spec/ruby/library/rexml/document/encoding_spec.rb +++ b/spec/ruby/library/rexml/document/encoding_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#encoding" do before :each do diff --git a/spec/ruby/library/rexml/document/expanded_name_spec.rb b/spec/ruby/library/rexml/document/expanded_name_spec.rb index 182f49eddd..1225d13fb0 100644 --- a/spec/ruby/library/rexml/document/expanded_name_spec.rb +++ b/spec/ruby/library/rexml/document/expanded_name_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe :document_expanded_name, shared: true do it "returns an empty string for root" do # root nodes have no expanded name diff --git a/spec/ruby/library/rexml/document/new_spec.rb b/spec/ruby/library/rexml/document/new_spec.rb index 0caa3fd583..39e806a472 100644 --- a/spec/ruby/library/rexml/document/new_spec.rb +++ b/spec/ruby/library/rexml/document/new_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' require 'rexml/document' describe "REXML::Document#new" do diff --git a/spec/ruby/library/rexml/document/node_type_spec.rb b/spec/ruby/library/rexml/document/node_type_spec.rb index b18b1a0dfe..85a4d507aa 100644 --- a/spec/ruby/library/rexml/document/node_type_spec.rb +++ b/spec/ruby/library/rexml/document/node_type_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#node_type" do it "returns :document" do diff --git a/spec/ruby/library/rexml/document/root_spec.rb b/spec/ruby/library/rexml/document/root_spec.rb index 55be68da6f..3c24e79b2d 100644 --- a/spec/ruby/library/rexml/document/root_spec.rb +++ b/spec/ruby/library/rexml/document/root_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#root" do it "returns document root tag name" do diff --git a/spec/ruby/library/rexml/document/stand_alone_spec.rb b/spec/ruby/library/rexml/document/stand_alone_spec.rb index 250c604dad..4ac24329d6 100644 --- a/spec/ruby/library/rexml/document/stand_alone_spec.rb +++ b/spec/ruby/library/rexml/document/stand_alone_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#stand_alone?" do it "returns the XMLDecl standalone value" do diff --git a/spec/ruby/library/rexml/document/version_spec.rb b/spec/ruby/library/rexml/document/version_spec.rb index ca979dbf34..983b4b9af0 100644 --- a/spec/ruby/library/rexml/document/version_spec.rb +++ b/spec/ruby/library/rexml/document/version_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#version" do it "returns XML version from declaration" do diff --git a/spec/ruby/library/rexml/document/write_spec.rb b/spec/ruby/library/rexml/document/write_spec.rb index f2a7e2c200..efa94b7117 100644 --- a/spec/ruby/library/rexml/document/write_spec.rb +++ b/spec/ruby/library/rexml/document/write_spec.rb @@ -1,6 +1,6 @@ require 'rexml/document' require 'rexml/formatters/transitive' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' # Maybe this can be cleaned describe "REXML::Document#write" do diff --git a/spec/ruby/library/rexml/document/xml_decl_spec.rb b/spec/ruby/library/rexml/document/xml_decl_spec.rb index 6a5bf07c0b..30288a150b 100644 --- a/spec/ruby/library/rexml/document/xml_decl_spec.rb +++ b/spec/ruby/library/rexml/document/xml_decl_spec.rb @@ -1,5 +1,5 @@ require 'rexml/document' -require File.expand_path('../../../../spec_helper', __FILE__) +require_relative '../../../spec_helper' describe "REXML::Document#xml_decl" do it "returns XML declaration of the document" do |