summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/length_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/length_spec.rb')
-rw-r--r--spec/ruby/core/array/length_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/array/length_spec.rb b/spec/ruby/core/array/length_spec.rb
index 6f4469dda5..e45abb2138 100644
--- a/spec/ruby/core/array/length_spec.rb
+++ b/spec/ruby/core/array/length_spec.rb
@@ -1,7 +1,7 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
-require File.expand_path('../shared/length', __FILE__)
+require_relative '../../spec_helper'
describe "Array#length" do
- it_behaves_like(:array_length, :length)
+ it "is an alias of Array#size" do
+ Array.instance_method(:length).should == Array.instance_method(:size)
+ end
end