Sha256: 81f6f6da1a8e01fa63e94bf741f55ea0b78cd1fc888eef6acb42c4902b1bbd7e
Contents?: true
Size: 710 Bytes
Versions: 4
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true require "introspection_test_helper" describe GObjectIntrospection::IRegisteredTypeInfo do describe "#get_type_name" do describe "for an interface" do let(:registered_type_info) do get_introspection_data("GIMarshallingTests", "Interface") end it "returns interface name" do _(registered_type_info.type_name).must_equal "GIMarshallingTestsInterface" end end describe "for a type that is not an interface" do let(:registered_type_info) do get_introspection_data("GIMarshallingTests", "Enum") end it "returns nil" do _(registered_type_info.type_name).must_be_nil end end end end
Version data entries
4 entries across 4 versions & 1 rubygems