diff options
Diffstat (limited to 'spec/ruby/core/unboundmethod/inspect_spec.rb')
| -rw-r--r-- | spec/ruby/core/unboundmethod/inspect_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/unboundmethod/inspect_spec.rb b/spec/ruby/core/unboundmethod/inspect_spec.rb index ffef61a639..b0fcfd00ea 100644 --- a/spec/ruby/core/unboundmethod/inspect_spec.rb +++ b/spec/ruby/core/unboundmethod/inspect_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes', __FILE__) -require File.expand_path('../shared/to_s', __FILE__) +require_relative '../../spec_helper' 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 |
