summaryrefslogtreecommitdiff
path: root/spec/ruby/library/yaml
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-04 15:09:32 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-04 15:09:32 +0000
commit401b64c4e840bc8887219e9e445a64b3d5943656 (patch)
tree989b93914e9a8ee57ef3ce0bb3d2e2083470fc49 /spec/ruby/library/yaml
parent8a15857a7f283101a3923b76c71a1f05bfe58512 (diff)
Update to ruby/spec@c1b568b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/yaml')
-rw-r--r--spec/ruby/library/yaml/add_builtin_type_spec.rb4
-rw-r--r--spec/ruby/library/yaml/add_domain_type_spec.rb4
-rw-r--r--spec/ruby/library/yaml/add_private_type_spec.rb4
-rw-r--r--spec/ruby/library/yaml/add_ruby_type_spec.rb4
-rw-r--r--spec/ruby/library/yaml/detect_implicit_spec.rb4
-rw-r--r--spec/ruby/library/yaml/dump_spec.rb4
-rw-r--r--spec/ruby/library/yaml/dump_stream_spec.rb4
-rw-r--r--spec/ruby/library/yaml/each_node_spec.rb4
-rw-r--r--spec/ruby/library/yaml/emitter_spec.rb4
-rw-r--r--spec/ruby/library/yaml/generic_parser_spec.rb4
-rw-r--r--spec/ruby/library/yaml/load_documents_spec.rb8
-rw-r--r--spec/ruby/library/yaml/load_file_spec.rb4
-rw-r--r--spec/ruby/library/yaml/load_spec.rb6
-rw-r--r--spec/ruby/library/yaml/load_stream_spec.rb8
-rw-r--r--spec/ruby/library/yaml/object_maker_spec.rb4
-rw-r--r--spec/ruby/library/yaml/parse_documents_spec.rb4
-rw-r--r--spec/ruby/library/yaml/parse_file_spec.rb4
-rw-r--r--spec/ruby/library/yaml/parse_spec.rb4
-rw-r--r--spec/ruby/library/yaml/parser_spec.rb4
-rw-r--r--spec/ruby/library/yaml/quick_emit_spec.rb4
-rw-r--r--spec/ruby/library/yaml/read_type_class_spec.rb4
-rw-r--r--spec/ruby/library/yaml/tagurize_spec.rb4
-rw-r--r--spec/ruby/library/yaml/to_yaml_spec.rb6
-rw-r--r--spec/ruby/library/yaml/transfer_spec.rb4
-rw-r--r--spec/ruby/library/yaml/try_implicit_spec.rb4
25 files changed, 56 insertions, 56 deletions
diff --git a/spec/ruby/library/yaml/add_builtin_type_spec.rb b/spec/ruby/library/yaml/add_builtin_type_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/add_builtin_type_spec.rb
+++ b/spec/ruby/library/yaml/add_builtin_type_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/add_domain_type_spec.rb b/spec/ruby/library/yaml/add_domain_type_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/add_domain_type_spec.rb
+++ b/spec/ruby/library/yaml/add_domain_type_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/add_private_type_spec.rb b/spec/ruby/library/yaml/add_private_type_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/add_private_type_spec.rb
+++ b/spec/ruby/library/yaml/add_private_type_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/add_ruby_type_spec.rb b/spec/ruby/library/yaml/add_ruby_type_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/add_ruby_type_spec.rb
+++ b/spec/ruby/library/yaml/add_ruby_type_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/detect_implicit_spec.rb b/spec/ruby/library/yaml/detect_implicit_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/detect_implicit_spec.rb
+++ b/spec/ruby/library/yaml/detect_implicit_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/dump_spec.rb b/spec/ruby/library/yaml/dump_spec.rb
index c361352..5af794b 100644
--- a/spec/ruby/library/yaml/dump_spec.rb
+++ b/spec/ruby/library/yaml/dump_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
# TODO: WTF is this using a global?
describe "YAML.dump" do
diff --git a/spec/ruby/library/yaml/dump_stream_spec.rb b/spec/ruby/library/yaml/dump_stream_spec.rb
index 918b626..9d30fef 100644
--- a/spec/ruby/library/yaml/dump_stream_spec.rb
+++ b/spec/ruby/library/yaml/dump_stream_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
describe "YAML.dump_stream" do
it "returns a YAML stream containing the objects passed" do
diff --git a/spec/ruby/library/yaml/each_node_spec.rb b/spec/ruby/library/yaml/each_node_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/each_node_spec.rb
+++ b/spec/ruby/library/yaml/each_node_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/emitter_spec.rb b/spec/ruby/library/yaml/emitter_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/emitter_spec.rb
+++ b/spec/ruby/library/yaml/emitter_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/generic_parser_spec.rb b/spec/ruby/library/yaml/generic_parser_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/generic_parser_spec.rb
+++ b/spec/ruby/library/yaml/generic_parser_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/load_documents_spec.rb b/spec/ruby/library/yaml/load_documents_spec.rb
index 77d6dd8..27edbca 100644
--- a/spec/ruby/library/yaml/load_documents_spec.rb
+++ b/spec/ruby/library/yaml/load_documents_spec.rb
@@ -1,7 +1,7 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
-require File.expand_path('../fixtures/strings', __FILE__)
-require File.expand_path('../shared/each_document', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
+require_relative 'fixtures/strings'
+require_relative 'shared/each_document'
ruby_version_is ''...'2.5' do
describe "YAML.load_documents" do
diff --git a/spec/ruby/library/yaml/load_file_spec.rb b/spec/ruby/library/yaml/load_file_spec.rb
index d9ba5be..2363c08 100644
--- a/spec/ruby/library/yaml/load_file_spec.rb
+++ b/spec/ruby/library/yaml/load_file_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
describe "YAML.load_file" do
after :each do
diff --git a/spec/ruby/library/yaml/load_spec.rb b/spec/ruby/library/yaml/load_spec.rb
index 6a2ab65..1e16bed 100644
--- a/spec/ruby/library/yaml/load_spec.rb
+++ b/spec/ruby/library/yaml/load_spec.rb
@@ -1,6 +1,6 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
-require File.expand_path('../fixtures/strings', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
+require_relative 'fixtures/strings'
describe "YAML.load" do
after :each do
diff --git a/spec/ruby/library/yaml/load_stream_spec.rb b/spec/ruby/library/yaml/load_stream_spec.rb
index f134f46..689653c 100644
--- a/spec/ruby/library/yaml/load_stream_spec.rb
+++ b/spec/ruby/library/yaml/load_stream_spec.rb
@@ -1,7 +1,7 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
-require File.expand_path('../fixtures/strings', __FILE__)
-require File.expand_path('../shared/each_document', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
+require_relative 'fixtures/strings'
+require_relative 'shared/each_document'
describe "YAML.load_stream" do
it_behaves_like :yaml_each_document, :load_stream
diff --git a/spec/ruby/library/yaml/object_maker_spec.rb b/spec/ruby/library/yaml/object_maker_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/object_maker_spec.rb
+++ b/spec/ruby/library/yaml/object_maker_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/parse_documents_spec.rb b/spec/ruby/library/yaml/parse_documents_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/parse_documents_spec.rb
+++ b/spec/ruby/library/yaml/parse_documents_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/parse_file_spec.rb b/spec/ruby/library/yaml/parse_file_spec.rb
index d898013..8d307c5 100644
--- a/spec/ruby/library/yaml/parse_file_spec.rb
+++ b/spec/ruby/library/yaml/parse_file_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
describe "YAML#parse_file" do
quarantine! do
diff --git a/spec/ruby/library/yaml/parse_spec.rb b/spec/ruby/library/yaml/parse_spec.rb
index 137fc23..d5dbfdc 100644
--- a/spec/ruby/library/yaml/parse_spec.rb
+++ b/spec/ruby/library/yaml/parse_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
describe "YAML#parse with an empty string" do
it "returns false" do
diff --git a/spec/ruby/library/yaml/parser_spec.rb b/spec/ruby/library/yaml/parser_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/parser_spec.rb
+++ b/spec/ruby/library/yaml/parser_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/quick_emit_spec.rb b/spec/ruby/library/yaml/quick_emit_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/quick_emit_spec.rb
+++ b/spec/ruby/library/yaml/quick_emit_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/read_type_class_spec.rb b/spec/ruby/library/yaml/read_type_class_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/read_type_class_spec.rb
+++ b/spec/ruby/library/yaml/read_type_class_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/tagurize_spec.rb b/spec/ruby/library/yaml/tagurize_spec.rb
index f6025cb..cc1b757 100644
--- a/spec/ruby/library/yaml/tagurize_spec.rb
+++ b/spec/ruby/library/yaml/tagurize_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
ruby_version_is ''...'2.5' do
describe "YAML.tagurize" do
diff --git a/spec/ruby/library/yaml/to_yaml_spec.rb b/spec/ruby/library/yaml/to_yaml_spec.rb
index afe583d..9713657 100644
--- a/spec/ruby/library/yaml/to_yaml_spec.rb
+++ b/spec/ruby/library/yaml/to_yaml_spec.rb
@@ -1,6 +1,6 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
-require File.expand_path('../fixtures/example_class', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
+require_relative 'fixtures/example_class'
describe "Object#to_yaml" do
diff --git a/spec/ruby/library/yaml/transfer_spec.rb b/spec/ruby/library/yaml/transfer_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/transfer_spec.rb
+++ b/spec/ruby/library/yaml/transfer_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'
diff --git a/spec/ruby/library/yaml/try_implicit_spec.rb b/spec/ruby/library/yaml/try_implicit_spec.rb
index a8af231..44c8209 100644
--- a/spec/ruby/library/yaml/try_implicit_spec.rb
+++ b/spec/ruby/library/yaml/try_implicit_spec.rb
@@ -1,2 +1,2 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/common', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/common'