diff options
Diffstat (limited to 'spec/ruby/core/string/intern_spec.rb')
| -rw-r--r-- | spec/ruby/core/string/intern_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/string/intern_spec.rb b/spec/ruby/core/string/intern_spec.rb index 71f3633920..af85e56dba 100644 --- a/spec/ruby/core/string/intern_spec.rb +++ b/spec/ruby/core/string/intern_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../fixtures/classes.rb', __FILE__) -require File.expand_path('../shared/to_sym.rb', __FILE__) +require_relative '../../spec_helper' describe "String#intern" do - it_behaves_like(:string_to_sym, :intern) + it "is an alias of String#to_sym" do + String.instance_method(:intern).should == String.instance_method(:to_sym) + end end |
