diff options
Diffstat (limited to 'spec/ruby/optional/capi/string_spec.rb')
-rw-r--r-- | spec/ruby/optional/capi/string_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/string_spec.rb b/spec/ruby/optional/capi/string_spec.rb index 2344dd37d7..cfd60c2593 100644 --- a/spec/ruby/optional/capi/string_spec.rb +++ b/spec/ruby/optional/capi/string_spec.rb @@ -36,7 +36,8 @@ describe "C-API String function" do before :each do # Make a completely new copy of the string # for every example (#dup doesn't cut it). - @str = "abcdefghij"[0..-1] + @str = "abcdefghij" + @s.rb_str_modify(@str) end it "reduces the size of the string" do |