We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5767b3e commit 8010fffCopy full SHA for 8010fff
spec/ruby/optional/capi/string_spec.rb
@@ -36,7 +36,7 @@ def to_str
36
before :each do
37
# Make a completely new copy of the string
38
# for every example (#dup doesn't cut it).
39
- @str = "abcdefghij"[0..-1]
+ @str = "abcdefghij".b[0..-1]
40
end
41
42
it "reduces the size of the string" do
@@ -63,7 +63,6 @@ def to_str
63
@s.rb_str_set_len(@str, 1)
64
@str.should == "a"
65
66
- @str.force_encoding(Encoding::UTF_8)
67
@s.RSTRING_PTR_set(@str, 1, 'B'.ord)
68
@s.RSTRING_PTR_set(@str, 2, 'C'.ord)
69
@s.rb_str_set_len(@str, 3)
0 commit comments