diff options
Diffstat (limited to 'spec/ruby/core/string/rpartition_spec.rb')
-rw-r--r-- | spec/ruby/core/string/rpartition_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/ruby/core/string/rpartition_spec.rb b/spec/ruby/core/string/rpartition_spec.rb index fc37f8b427..c8f9afaee9 100644 --- a/spec/ruby/core/string/rpartition_spec.rb +++ b/spec/ruby/core/string/rpartition_spec.rb @@ -1,7 +1,10 @@ require_relative '../../spec_helper' require_relative 'fixtures/classes' +require_relative 'shared/partition' describe "String#rpartition with String" do + it_behaves_like :string_partition, :rpartition + it "returns an array of substrings based on splitting on the given string" do "hello world".rpartition("o").should == ["hello w", "o", "rld"] end |