mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@ccf0d85
This commit is contained in:
parent
afcbb501ac
commit
b9f34062f0
28 changed files with 692 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue