Sha256: ae48dd5f1e773cc56b7514fd0de1a137deb581a4a33ef911579f13847e275e42

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))

describe GirFFI::Builder::ListElementTypeProvider do
  describe "#elm_t" do
    it "returns a string with just the first subtype tag" do
      builder = Object.new
      builder.extend GirFFI::Builder::ListElementTypeProvider
      mock(builder).subtype_tag { :foo }

      assert_equal ":foo", builder.elm_t
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gir_ffi-0.4.0 test/unit/list_element_type_provider_test.rb
gir_ffi-0.3.2 test/unit/list_element_type_provider_test.rb
gir_ffi-0.3.1 test/unit/list_element_type_provider_test.rb
gir_ffi-0.3.0 test/unit/list_element_type_provider_test.rb
gir_ffi-0.2.3 test/unit/list_element_type_provider_test.rb