Sha256: 96f2295b9e2a0ece612f327305eeb2d2b04193a045fefc4e6fa0d8dca9cc337a
Contents?: true
Size: 473 Bytes
Versions: 6
Compression:
Stored size: 473 Bytes
Contents
require 'gir_ffi_test_helper' describe GirFFI::ObjectBase do let(:derived_class) { Class.new GirFFI::ObjectBase } describe '.wrap' do it 'delegates conversion to the wrapped pointer' do expect(ptr = Object.new).to receive(:to_object).and_return 'good-result' derived_class.wrap(ptr).must_equal 'good-result' end end describe '.to_ffi_type' do it 'returns :pointer' do derived_class.to_ffi_type.must_equal :pointer end end end
Version data entries
6 entries across 6 versions & 1 rubygems