summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/enumerator/with_index.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/shared/enumerator/with_index.rb')
-rw-r--r--spec/ruby/shared/enumerator/with_index.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/shared/enumerator/with_index.rb b/spec/ruby/shared/enumerator/with_index.rb
index 37048a7b52..4f459bd9a8 100644
--- a/spec/ruby/shared/enumerator/with_index.rb
+++ b/spec/ruby/shared/enumerator/with_index.rb
@@ -1,8 +1,8 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe :enum_with_index, shared: true do
- require File.expand_path('../../../fixtures/enumerator/classes', __FILE__)
+ require_relative '../../fixtures/enumerator/classes'
before :each do
@enum = [1, 2, 3, 4].to_enum