Sha256: 263b382093da985225a014e34d279d62d5e17028dc566010956b0291b1c7d10e

Contents?: true

Size: 518 Bytes

Versions: 9

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi_test_helper'

describe GirFFI::Builders::EnumBuilder do
  describe 'creating Regress::TestEnum' do
    before do
      save_module :Regress
    end

    it 'makes the created type know its proper name' do
      info = get_introspection_data 'Regress', 'TestEnum'
      builder = GirFFI::Builders::EnumBuilder.new info
      enum = builder.build_class
      enum.inspect.must_equal 'Regress::TestEnum'
    end

    after do
      restore_module :Regress
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.11.0 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.10.2 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.10.1 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.10.0 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.10.0.pre1 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.9.5 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.9.4 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.9.3 test/gir_ffi/builders/enum_builder_test.rb