Sha256: 5fb0c0ab4b8200899225952170ff642113ff30936ad247cca8bc620e79a6cd92
Contents?: true
Size: 548 Bytes
Versions: 19
Compression:
Stored size: 548 Bytes
Contents
require "spec_helper" describe Redcar::Gui do before do Redcar::Gui.all.clear @gui = Redcar::Gui.new("test gui") end it "has a name" do @gui.name.should == "test gui" end it "registers itself" do Redcar::Gui.all.map {|g| g.name} .should == ["test gui"] end it "delegates start and stop to the event loop" do event_loop = mock("Event Loop") event_loop.should_receive(:start) event_loop.should_receive(:stop) @gui.register_event_loop(event_loop) @gui.start @gui.stop end end
Version data entries
19 entries across 19 versions & 2 rubygems