summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/next_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/next_spec.rb')
-rw-r--r--spec/ruby/core/string/next_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/ruby/core/string/next_spec.rb b/spec/ruby/core/string/next_spec.rb
index 6b4a98d993..2ab121a909 100644
--- a/spec/ruby/core/string/next_spec.rb
+++ b/spec/ruby/core/string/next_spec.rb
@@ -1,11 +1,13 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes.rb', __FILE__)
-require File.expand_path('../shared/succ.rb', __FILE__)
+require_relative '../../spec_helper'
describe "String#next" do
- it_behaves_like(:string_succ, :next)
+ it "is an alias of String#succ" do
+ String.instance_method(:next).should == String.instance_method(:succ)
+ end
end
describe "String#next!" do
- it_behaves_like(:string_succ_bang, :"next!")
+ it "is an alias of String#succ!" do
+ String.instance_method(:next!).should == String.instance_method(:succ!)
+ end
end