summaryrefslogtreecommitdiff
path: root/spec/ruby/core/struct/inspect_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/struct/inspect_spec.rb')
-rw-r--r--spec/ruby/core/struct/inspect_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/core/struct/inspect_spec.rb b/spec/ruby/core/struct/inspect_spec.rb
index 657b06abc1..13fd0bef41 100644
--- a/spec/ruby/core/struct/inspect_spec.rb
+++ b/spec/ruby/core/struct/inspect_spec.rb
@@ -1,7 +1,8 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
-require_relative 'shared/inspect'
describe "Struct#inspect" do
- it_behaves_like :struct_inspect, :inspect
+ it "is an alias of Struct#to_s" do
+ StructClasses::Car.instance_method(:inspect).should == StructClasses::Car.instance_method(:to_s)
+ end
end