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.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/unboundmethod/inspect_spec.rb b/spec/ruby/core/unboundmethod/inspect_spec.rb
index cecf542fcd..b0fcfd00ea 100644
--- a/spec/ruby/core/unboundmethod/inspect_spec.rb
+++ b/spec/ruby/core/unboundmethod/inspect_spec.rb
@@ -1,7 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'fixtures/classes'
-require_relative 'shared/to_s'
describe "UnboundMethod#inspect" do
- it_behaves_like :unboundmethod_to_s, :inspect
+ it "is an alias of UnboundMethod#to_s" do
+ UnboundMethod.instance_method(:inspect).should == UnboundMethod.instance_method(:to_s)
+ end
end