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

Version Path
gir_ffi-0.9.2 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.9.1 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.9.0 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.6 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.5 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.4 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.3 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.2 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.1 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.8.0 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.7.10 test/gir_ffi/user_defined_property_info_test.rb
gir_ffi-0.7.9 test/gir_ffi/user_defined_property_info_test.rb