Sha256: 15ba28cb4d72c6fc33ace07f2fcbeaa4d2428eb3e15b455c53d7715f78c7dc21
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
require 'gir_ffi_test_helper' describe GirFFI::Builder::Type::Union do before do @cbuilder = GirFFI::Builder::Type::Union.new get_introspection_data('GObject', 'TypeCValue') end it "returns false looking for a method that doesn't exist" do assert_equal false, @cbuilder.setup_instance_method('blub') end describe "#pretty_print" do it "returns a class block" do mock(info = Object.new).safe_name { "Bar" } stub(info).namespace { "Foo" } builder = GirFFI::Builder::Type::Union.new(info) assert_equal "class Bar\nend", builder.pretty_print end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.4.3 | test/gir_ffi/builder/type/union_test.rb |
gir_ffi-0.4.2 | test/gir_ffi/builder/type/union_test.rb |
gir_ffi-0.4.1 | test/gir_ffi/builder/type/union_test.rb |