Sha256: a77e6071e4c4c1704895fcb691f31d65ceb1e58d21f7eccbffc87cdec4463a15
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 Bytes
Contents
require 'Context/Context' require 'Context/View' require 'Context/Bridge' require 'Context/Gtk/Widget' # These are some useful fakes for testing with module JLDrill module Fakes # This is a fake App that doesn't start up the GTK # initialization. That way the main run loop doesn't # get started. class App < Context::Context attr_reader :mainContext def initialize(bridgeClass, mainContextClass) bridge = Context::Bridge.new(bridgeClass) super(bridge) @mainContext = mainContextClass.new(bridge) @mainContext.inTests = true end def enter super(nil) @mainContext.enter(self) end end end end module Context::Gtk::Widget # This will turn off the drawing of the widgets in the tests def isInTests? true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.5.1.7 | lib/jldrill/spec/Fakes.rb |