Sha256: d6113b4637420c15b69976ccd5f882361dc004ccdd1d0df8da37da0bfc1dd5ff
Contents?: true
Size: 510 Bytes
Versions: 9
Compression:
Stored size: 510 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