aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/string/partition_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-10-05 19:41:44 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-10-05 19:41:44 +0200
commitb9f34062f00d1d2548ca9b6af61a6447c2d0f8e3 (patch)
tree37c7600088a5e080b2f35794b0923395daf036d0 /spec/ruby/core/string/partition_spec.rb
parentafcbb501ac17ba2ad5370ada5fd26e8dda9a5aaa (diff)
downloadruby-b9f34062f00d1d2548ca9b6af61a6447c2d0f8e3.tar.gz
Update to ruby/spec@ccf0d85
Diffstat (limited to 'spec/ruby/core/string/partition_spec.rb')
-rw-r--r--spec/ruby/core/string/partition_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/ruby/core/string/partition_spec.rb b/spec/ruby/core/string/partition_spec.rb
index 996368d6a4..98311f2be4 100644
--- a/spec/ruby/core/string/partition_spec.rb
+++ b/spec/ruby/core/string/partition_spec.rb
@@ -1,7 +1,10 @@
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
+require_relative 'shared/partition'
describe "String#partition with String" do
+ it_behaves_like :string_partition, :partition
+
it "returns an array of substrings based on splitting on the given string" do
"hello world".partition("o").should == ["hell", "o", " world"]
end