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 3603ae3 commit b27be97Copy full SHA for b27be97
testdata/dummy/sig/dummy/tests.rbs
@@ -28,5 +28,6 @@ module Dummy
28
def self.rb_eval_string_protect: (string str) -> [untyped, Integer]
29
def self.rb_ary_new: () -> []
30
def self.rb_ary_new_capa: (Integer capa) -> []
31
+ def self.rb_ary_push: ([] ary, untyped elem) -> []
32
end
33
testdata/dummy/spec/dummy/tests_spec.rb
@@ -209,4 +209,11 @@
209
expect(Dummy::Tests.rb_ary_new_capa(1)).to eq []
210
211
212
+
213
+ describe ".rb_ary_push" do
214
+ it "works" do
215
+ ret = Dummy::Tests.rb_ary_push([1], 2)
216
+ expect(ret).to eq [1, 2]
217
+ end
218
219
0 commit comments