diff options
Diffstat (limited to 'spec/ruby/core/array/to_s_spec.rb')
| -rw-r--r-- | spec/ruby/core/array/to_s_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/ruby/core/array/to_s_spec.rb b/spec/ruby/core/array/to_s_spec.rb index 3a34d5ee0e..483e14f902 100644 --- a/spec/ruby/core/array/to_s_spec.rb +++ b/spec/ruby/core/array/to_s_spec.rb @@ -1,8 +1,7 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/join', __FILE__) -require File.expand_path('../shared/inspect', __FILE__) +require_relative '../../spec_helper' describe "Array#to_s" do - it_behaves_like :array_inspect, :to_s + it "is an alias of Array#inspect" do + Array.instance_method(:to_s).should == Array.instance_method(:inspect) + end end |
