Sha256: f3b5f48d99ac553138d6ab484781714d0e4442da664d70b1d2f22b858d61ab3f

Contents?: true

Size: 515 Bytes

Versions: 4

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi_test_helper'

require 'ffi-gobject'
describe GObject::ParamSpec do
  describe '#ref' do
    it 'increases the ref count' do
      pspec = GObject.param_spec_boolean('foo', 'foo bar',
                                         'Boolean Foo Bar',
                                         false,
                                         readable: true, writable: true)

      old = pspec.ref_count
      pspec.ref
      pspec.ref_count.must_equal old + 1
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.10.2 test/ffi-gobject/param_spec_test.rb
gir_ffi-0.10.1 test/ffi-gobject/param_spec_test.rb
gir_ffi-0.10.0 test/ffi-gobject/param_spec_test.rb
gir_ffi-0.10.0.pre1 test/ffi-gobject/param_spec_test.rb