Sha256: 2b927fbac61185114095321b2e83b17883c4ff9cf37f7d646895550f0e3c28bd
Contents?: true
Size: 509 Bytes
Versions: 9
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' describe GirFFI::InterfaceBase do let(:interface) { Module.new { extend GirFFI::InterfaceBase } } describe '#wrap' do it 'delegates conversion to the wrapped pointer' do expect(ptr = Object.new).to receive(:to_object).and_return 'good-result' interface.wrap(ptr).must_equal 'good-result' end end describe '.to_ffi_type' do it 'returns :pointer' do interface.to_ffi_type.must_equal :pointer end end end
Version data entries
9 entries across 9 versions & 1 rubygems