Sha256: 740cf1bb712fa40a40f3b5eed99ad076142dceb14b036d65bdb8ccfdfe23fb8c

Contents?: true

Size: 488 Bytes

Versions: 13

Compression:

Stored size: 488 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.9.1 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.9.0 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.6 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.5 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.4 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.3 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.2 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.1 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.8.0 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.7.10 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.7.9 test/gir_ffi/builders/enum_builder_test.rb
gir_ffi-0.7.8 test/gir_ffi/builders/enum_builder_test.rb