Sha256: 596eaa369acd37d81c1d75b979e5dca2a7e00cc4717e2e542771f362731c7e1e
Contents?: true
Size: 761 Bytes
Versions: 9
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi_test_helper' require 'gir_ffi/receiver_argument_info' describe GirFFI::ReceiverArgumentInfo do let(:dummy_type) { 'foo' } let(:instance) { GirFFI::ReceiverArgumentInfo.new dummy_type } describe '#argument_type' do it 'returns the argument type' do instance.argument_type.must_equal dummy_type end end describe '#direction' do it 'returns the correct value' do instance.direction.must_equal :in end end describe '#ownership_transfer' do it 'returns the correct value' do instance.ownership_transfer.must_equal :everything end end describe '#name' do it 'returns the correct value' do instance.name.must_equal '_instance' end end end
Version data entries
9 entries across 9 versions & 1 rubygems