Sha256: 2275328686d9f56f1ca1b582c039e55ab696e03d046c175b5be33c990ff0d718

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

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

class HelperGTypeTest < Test::Unit::TestCase
  context "The GType module" do
    should "have init as a public method" do
      assert GirFFI::GType.respond_to?('init')
    end

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

  end
  context "the init method" do
    should "not raise an error" do
      assert_nothing_raised do
	GirFFI::GType.init
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.0.3 test/g_type_test.rb
gir_ffi-0.0.2 test/g_type_test.rb
gir_ffi-0.0.1 test/g_type_test.rb