Sha256: bd5eeab147abdcc7e44b42f111730250661b21fa36f9fa463d955381850da6ac

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

require File.expand_path('test_helper.rb', File.dirname(__FILE__))
require 'gir_ffi/g_object'

class GObjectTest < Test::Unit::TestCase
  context "The GirFFI::GObject helper module" do
    should "have type_init as a public method" do
      assert GirFFI::GObject.respond_to?('type_init')
    end

    should "not have g_type_init as a public method" do
      assert GirFFI::GObject.respond_to?('g_type_init') == false
    end

  end
  context "the type_init method" do
    should "not raise an error" do
      assert_nothing_raised do
	GirFFI::GObject.type_init
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.0.5 test/g_object_test.rb
gir_ffi-0.0.4 test/g_object_test.rb