Sha256: 82c40c438702a67a30722ec14bbea0d55c50981679f496701dc54120e2a93c35
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
require 'gir_ffi_test_helper' describe GirFFI::InfoExt::ICallbackInfo do let(:klass) { Class.new do include GirFFI::InfoExt::ICallbackInfo end } let(:callback_info) { klass.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.7.10 | test/gir_ffi/info_ext/i_callback_info_test.rb |
gir_ffi-0.7.9 | test/gir_ffi/info_ext/i_callback_info_test.rb |