Sha256: 9c99ff2cb21a088aac372141847ff56e3f9158ed5ee8164d8bc64093abb48cc8
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
require 'test/unit' require 'wx' class AppReturnsFalseFromInit < Wx::App attr_reader :did_call_on_init, :the_app_name def on_init @did_call_on_init = true @the_app_name = self.get_app_name return false end end class TestApp < Test::Unit::TestCase def test_return_false_from_init o = AppReturnsFalseFromInit.new o.run assert(o.did_call_on_init, "didn't call on_init?") assert_equal("wxruby", o.the_app_name) end end
Version data entries
6 entries across 6 versions & 1 rubygems