Sha256: 0a0c415bbdb401a9c784b4c8c350689b6125f91229424eb25d3261cc7851fdc3
Contents?: true
Size: 637 Bytes
Versions: 12
Compression:
Stored size: 637 Bytes
Contents
require 'gir_ffi_test_helper' require 'gir_ffi/user_defined_property_info' describe GirFFI::UserDefinedPropertyInfo do describe '#param_spec' do it 'returns the passed in parameter specification' do info = GirFFI::UserDefinedPropertyInfo.new :some_param_spec info.param_spec.must_equal :some_param_spec end end describe '#name' do it 'returns the name retrieved from the parameter specification' do expect(param_spec = Object.new).to receive(:get_name).and_return :property_name info = GirFFI::UserDefinedPropertyInfo.new param_spec info.name.must_equal :property_name end end end
Version data entries
12 entries across 12 versions & 1 rubygems