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.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/ruby/core/unboundmethod/inspect_spec.rb b/spec/ruby/core/unboundmethod/inspect_spec.rb
index 3abed94f7f..b0fcfd00ea 100644
--- a/spec/ruby/core/unboundmethod/inspect_spec.rb
+++ b/spec/ruby/core/unboundmethod/inspect_spec.rb
@@ -1,9 +1,7 @@
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 }
+ it "is an alias of UnboundMethod#to_s" do
+ UnboundMethod.instance_method(:inspect).should == UnboundMethod.instance_method(:to_s)
+ end
end