Sha256: 1ac9167907f43b9032393c329e8dc7536f736193ea57c77ac18ff19a7ff09b05
Contents?: true
Size: 603 Bytes
Versions: 6
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' describe GirFFI::InfoExt::ICallbackInfo do let(:callback_class) do Class.new do include GirFFI::InfoExt::ICallbackInfo end end let(:callback_info) { callback_class.new } describe '#return_ffi_type' do it 'returns the callback ffi type of the return type' do allow(return_type_info = Object.new).to receive(:to_callback_ffi_type).and_return :some_type allow(callback_info).to receive(:return_type).and_return return_type_info callback_info.return_ffi_type.must_equal :some_type end end end
Version data entries
6 entries across 6 versions & 1 rubygems