Sha256: 222187ce86d11c37282696b15a6380e074c63696b9bab8ee23f0a3eea8cd10d0

Contents?: true

Size: 667 Bytes

Versions: 7

Compression:

Stored size: 667 Bytes

Contents

# frozen_string_literal: true
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

7 entries across 7 versions & 1 rubygems

Version Path
gir_ffi-0.10.2 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.10.1 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.10.0 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.10.0.pre1 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.9.5 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.9.4 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.9.3 test/gir_ffi/user_defined_property_info_test.rb