Sha256: c1c805b931f2c84e48c10e4a36808edc3b5909768a5ca5168bf96c2a8b1c27da

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

require 'Context/Gtk/App'
require 'gtk2'

module Context::Gtk

	describe App do

		before(:each) do
			Gtk.should_receive(:init)
			@app = App.new(Context::Gtk, Context::Context)
		end
		
		it "should start the Gtk main loop when run" do
			Gtk.should_receive(:main)
			@app.mainContext.should_receive(:enter)
			@app.enter
		end
		
		it "should quit the Gtk main loop when quit" do
			Gtk.should_receive(:main_quit)
			@app.exit
		end
	end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
jldrill-0.5.1.7 spec/Context/Gtk/App_spec.rb
context-0.0.22 spec/Context/Gtk/App_spec.rb
context-0.0.16 spec/Context/Gtk/App_spec.rb