summaryrefslogtreecommitdiff
path: root/spec/ruby/core/hash/to_s_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/hash/to_s_spec.rb')
-rw-r--r--spec/ruby/core/hash/to_s_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/hash/to_s_spec.rb b/spec/ruby/core/hash/to_s_spec.rb
new file mode 100644
index 0000000000..2915db6ef8
--- /dev/null
+++ b/spec/ruby/core/hash/to_s_spec.rb
@@ -0,0 +1,7 @@
+require_relative '../../spec_helper'
+
+describe "Hash#to_s" do
+ it "is an alias of Hash#inspect" do
+ Hash.instance_method(:to_s).should == Hash.instance_method(:inspect)
+ end
+end