summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/collect_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/collect_spec.rb')
-rw-r--r--spec/ruby/core/array/collect_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/array/collect_spec.rb b/spec/ruby/core/array/collect_spec.rb
index 1c2c28c6bd..0ad4c283b1 100644
--- a/spec/ruby/core/array/collect_spec.rb
+++ b/spec/ruby/core/array/collect_spec.rb
@@ -1,11 +1,11 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
-require File.expand_path('../shared/collect', __FILE__)
+require_relative '../../spec_helper'
+require_relative 'fixtures/classes'
+require_relative 'shared/collect'
describe "Array#collect" do
- it_behaves_like(:array_collect, :collect)
+ it_behaves_like :array_collect, :collect
end
describe "Array#collect!" do
- it_behaves_like(:array_collect_b, :collect!)
+ it_behaves_like :array_collect_b, :collect!
end