summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/to_str_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/to_str_spec.rb')
-rw-r--r--spec/ruby/core/string/to_str_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/string/to_str_spec.rb b/spec/ruby/core/string/to_str_spec.rb
index e24262a7ae..8253b3d8a3 100644
--- a/spec/ruby/core/string/to_str_spec.rb
+++ b/spec/ruby/core/string/to_str_spec.rb
@@ -1,7 +1,7 @@
require_relative '../../spec_helper'
-require_relative 'fixtures/classes'
-require_relative 'shared/to_s'
describe "String#to_str" do
- it_behaves_like :string_to_s, :to_str
+ it "is an alias of String#to_s" do
+ String.instance_method(:to_str).should == String.instance_method(:to_s)
+ end
end