diff options
Diffstat (limited to 'spec/ruby/optional/capi/encoding_spec.rb')
-rw-r--r-- | spec/ruby/optional/capi/encoding_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/optional/capi/encoding_spec.rb b/spec/ruby/optional/capi/encoding_spec.rb index 88b3e47833..583b33d736 100644 --- a/spec/ruby/optional/capi/encoding_spec.rb +++ b/spec/ruby/optional/capi/encoding_spec.rb @@ -139,21 +139,21 @@ describe "C-API Encoding function" do it_behaves_like :rb_enc_get_index, :rb_enc_get_index it "returns the index of the encoding of a Symbol" do - @s.send(@method, :symbol).should >= 0 + @s.rb_enc_get_index(:symbol).should >= 0 end it "returns -1 as the index of nil" do - @s.send(@method, nil).should == -1 + @s.rb_enc_get_index(nil).should == -1 end it "returns -1 as the index for immediates" do - @s.send(@method, 1).should == -1 + @s.rb_enc_get_index(1).should == -1 end ruby_version_is "2.6" do it "returns -1 for an object without an encoding" do obj = Object.new - @s.send(@method, obj).should == -1 + @s.rb_enc_get_index(obj).should == -1 end end end |