aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/language/file_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/language/file_spec.rb')
-rw-r--r--spec/ruby/language/file_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/language/file_spec.rb b/spec/ruby/language/file_spec.rb
index 409400ca83..bf7175a9bc 100644
--- a/spec/ruby/language/file_spec.rb
+++ b/spec/ruby/language/file_spec.rb
@@ -1,6 +1,6 @@
-require File.expand_path('../../spec_helper', __FILE__)
-require File.expand_path('../../fixtures/code_loading', __FILE__)
-require File.expand_path('../shared/__FILE__', __FILE__)
+require_relative '../spec_helper'
+require_relative '../fixtures/code_loading'
+require_relative 'shared/__FILE__'
describe "The __FILE__ pseudo-variable" do
it "raises a SyntaxError if assigned to" do