Sha256: 1e23579265b1242aa883186eff3d3d4103a63769ba435835913693a3b502b895
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
require File.expand_path('test_helper.rb', File.dirname(__FILE__)) require 'gir_ffi' GirFFI.setup :Gtk class GtkOverridesTest < Test::Unit::TestCase context "The Gtk.init function" do should "not take any arguments" do assert_raises(ArgumentError) { Gtk.init 1, ["foo"] } assert_nothing_raised { Gtk.init } end # FIXME: The following test doesn't actually work. # In practice however, the Gtk.init function does exactly this. if false should "process ARGV, removing Gtk+ options" do ARGV.replace ["foo", "--g-fatal-warnings"] Gtk.init assert_same_elements ["foo"], ARGV end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.1 | test/gtk_overrides_test.rb |