Sha256: c633a18a794c60e5cea3b85a36a5f28b93c938c91268471ee3f0c6cbc2031274
Contents?: true
Size: 646 Bytes
Versions: 8
Compression:
Stored size: 646 Bytes
Contents
require 'gir_ffi_test_helper' describe GirFFI::InfoExt::ICallableInfo do let(:klass) { Class.new do include GirFFI::InfoExt::ICallableInfo end } let(:callable_info) { klass.new } describe "#argument_ffi_types" do describe "for a simple callable with several arguments" do before do stub(arg_info1 = Object.new).to_ffitype { :type1 } stub(arg_info2 = Object.new).to_ffitype { :type2 } stub(callable_info).args { [arg_info1, arg_info2] } end it "returns the ffi types of the arguments" do callable_info.argument_ffi_types.must_equal [:type1, :type2] end end end end
Version data entries
8 entries across 8 versions & 1 rubygems