Sha256: 0d88ab48035fa5031aae656b9b3b60fede7833eac896f7c9e997ca590f934d73

Contents?: true

Size: 485 Bytes

Versions: 4

Compression:

Stored size: 485 Bytes

Contents

require 'gir_ffi_test_helper'

describe GirFFI::Builder::Type::Enum 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::Builder::Type::Enum.new info
      enum = builder.build_class
      enum.inspect.must_equal "Regress::TestEnum"
    end

    after do
      restore_module :Regress
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.6.6 test/gir_ffi/builder/type/enum_test.rb
gir_ffi-0.6.5 test/gir_ffi/builder/type/enum_test.rb
gir_ffi-0.6.4 test/gir_ffi/builder/type/enum_test.rb
gir_ffi-0.6.3 test/gir_ffi/builder/type/enum_test.rb