Sha256: a6c445c132ebea8d8c1999707ba8fbafaa3a3a3edb149f751076a202ec63aa92
Contents?: true
Size: 986 Bytes
Versions: 1
Compression:
Stored size: 986 Bytes
Contents
# encoding: utf-8 require 'Context/Bridge' require 'jldrill/contexts/ShowStatisticsContext' require 'jldrill/views/gtk/StatisticsView' require 'jldrill/contexts/MainContext' require 'jldrill/views/gtk/MainWindowView' require 'jldrill/model/Quiz/Quiz' module JLDrill::Gtk describe StatisticsView do before(:all) do @story = JLDrill::StoryMemento.new("StatisticsView") def @story.setup(type) super(type) @context = @mainContext.showStatisticsContext @view = @context.peekAtView end end it "should close the view when the window is destroyed" do @story.setup(JLDrill::Gtk) @story.start @story.mainContext.showStatistics @story.view.should_receive(:close) do @story.view.statisticsWindow.destroy end @story.view.emitDestroyEvent @story.shutdown end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | spec/jldrill/views/gtk/StatisticsView_spec.rb |