Sha256: 855003156effb045c725a048f3140105370ceeee2942e3580eb069b23314bee4

Contents?: true

Size: 352 Bytes

Versions: 12

Compression:

Stored size: 352 Bytes

Contents

require 'gir_ffi_test_helper'

describe GirFFI::ObjectBase do
  describe "#wrap" do
    it "dynamically looks op the wrapped object's class" do
      mod = Class.new GirFFI::ObjectBase

      mock(GirFFI::ArgHelper).object_pointer_to_object("some-pointer") { "good-result" }

      mod.wrap("some-pointer").must_equal "good-result"
    end
  end
end


Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gir_ffi-0.6.6 test/gir_ffi/object_base_test.rb
gir_ffi-0.6.5 test/gir_ffi/object_base_test.rb
gir_ffi-0.6.4 test/gir_ffi/object_base_test.rb
gir_ffi-0.6.3 test/gir_ffi/object_base_test.rb
gir_ffi-0.6.2 test/gir_ffi/object_base_test.rb
gir_ffi-0.6.1 test/gir_ffi/object_base_test.rb
gir_ffi-0.6.0 test/gir_ffi/object_base_test.rb
gir_ffi-0.5.2 test/gir_ffi/object_base_test.rb
gir_ffi-0.5.1 test/gir_ffi/object_base_test.rb
gir_ffi-0.5.0 test/gir_ffi/object_base_test.rb
gir_ffi-0.4.3 test/gir_ffi/object_base_test.rb
gir_ffi-0.4.2 test/gir_ffi/object_base_test.rb