Sha256: 036a777451e350e979ec2e9a12d1d145c1ef5181f99c7e48988db990b7dccfe8
Contents?: true
Size: 589 Bytes
Versions: 60
Compression:
Stored size: 589 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "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
60 entries across 60 versions & 2 rubygems