summaryrefslogtreecommitdiff
path: root/spec/ruby/library/scanf
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/scanf')
-rw-r--r--spec/ruby/library/scanf/io/block_scanf_spec.rb4
-rw-r--r--spec/ruby/library/scanf/io/scanf_spec.rb4
-rw-r--r--spec/ruby/library/scanf/string/block_scanf_spec.rb4
-rw-r--r--spec/ruby/library/scanf/string/scanf_spec.rb4
4 files changed, 8 insertions, 8 deletions
diff --git a/spec/ruby/library/scanf/io/block_scanf_spec.rb b/spec/ruby/library/scanf/io/block_scanf_spec.rb
index aee6459199..2c1e242cf6 100644
--- a/spec/ruby/library/scanf/io/block_scanf_spec.rb
+++ b/spec/ruby/library/scanf/io/block_scanf_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../shared/block_scanf.rb', __FILE__)
+require_relative '../../../spec_helper'
+require_relative 'shared/block_scanf'
require 'scanf'
describe "IO#block_scanf" do
diff --git a/spec/ruby/library/scanf/io/scanf_spec.rb b/spec/ruby/library/scanf/io/scanf_spec.rb
index 7752036c09..94e999335e 100644
--- a/spec/ruby/library/scanf/io/scanf_spec.rb
+++ b/spec/ruby/library/scanf/io/scanf_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../shared/block_scanf.rb', __FILE__)
+require_relative '../../../spec_helper'
+require_relative 'shared/block_scanf'
require 'scanf'
describe "IO#scanf" do
diff --git a/spec/ruby/library/scanf/string/block_scanf_spec.rb b/spec/ruby/library/scanf/string/block_scanf_spec.rb
index 9dc5b52a84..d5c42cb395 100644
--- a/spec/ruby/library/scanf/string/block_scanf_spec.rb
+++ b/spec/ruby/library/scanf/string/block_scanf_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../shared/block_scanf.rb', __FILE__)
+require_relative '../../../spec_helper'
+require_relative 'shared/block_scanf'
require 'scanf'
describe "String#block_scanf" do
diff --git a/spec/ruby/library/scanf/string/scanf_spec.rb b/spec/ruby/library/scanf/string/scanf_spec.rb
index 885361d5af..fbe2590476 100644
--- a/spec/ruby/library/scanf/string/scanf_spec.rb
+++ b/spec/ruby/library/scanf/string/scanf_spec.rb
@@ -1,5 +1,5 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../shared/block_scanf.rb', __FILE__)
+require_relative '../../../spec_helper'
+require_relative 'shared/block_scanf'
require 'scanf'
describe "String#scanf" do