1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "encoding.c (rb_enc_get_index): return -1 for non-encoding capable objects"

* This reverts commit fb253d2032.
* The CI is failing, this seems a bug in the JSON C extension.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2018-08-03 14:31:39 +00:00
parent fb253d2032
commit bd58361e58
2 changed files with 8 additions and 15 deletions

View file

@ -147,11 +147,6 @@ describe "C-API Encoding function" do
it "returns -1 as the index for immediates" do
@s.send(@method, 1).should == -1
end
it "returns -1 for an object without an encoding" do
obj = Object.new
@s.send(@method, obj).should == -1
end
end
describe "rb_enc_set_index" do