summaryrefslogtreecommitdiff
path: root/spec/ruby/core/unboundmethod/inspect_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/unboundmethod/inspect_spec.rb')
-rw-r--r--spec/ruby/core/unboundmethod/inspect_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/unboundmethod/inspect_spec.rb b/spec/ruby/core/unboundmethod/inspect_spec.rb
new file mode 100644
index 0000000000..3abed94f7f
--- /dev/null
+++ b/spec/ruby/core/unboundmethod/inspect_spec.rb
@@ -0,0 +1,9 @@
+require_relative '../../spec_helper'
+require_relative 'fixtures/classes'
+require_relative 'shared/to_s'
+require_relative '../method/shared/aliased_inspect'
+
+describe "UnboundMethod#inspect" do
+ it_behaves_like :unboundmethod_to_s, :inspect
+ it_behaves_like :method_to_s_aliased, :inspect, -> meth { meth.unbind }
+end