Sha256: d2d585c018d9174339a1e7e1dcbabefbea5168dfa58cb392aa9cf35fa662996e
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
require File.expand_path('test_helper.rb', File.dirname(__FILE__)) require 'gir_ffi/builder' class ConstructorDefinitionBuilderTest < Test::Unit::TestCase context "The ConstructorDefinitionBuilder" do should "build correct definition of Gtk::Window#new" do go = get_method_introspection_data 'Gtk', 'Window', 'new' cbuilder = GirFFI::ConstructorDefinitionBuilder.new go, Lib code = cbuilder.generate expected = "def new type _real_new Lib.gtk_window_new(type) end" assert_equal cws(expected), cws(code) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.1 | test/constructor_definition_builder_test.rb |