Sha256: fde1e7da20f01904d2cb3dd91a180ead68e30975c85eb2fac613e118bba81bff
Contents?: true
Size: 982 Bytes
Versions: 1
Compression:
Stored size: 982 Bytes
Contents
# encoding: utf-8 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.6.0.1 | lib/jldrill/spec/Fakes.rb |