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

Version Path
redcar-dev-0.12.17dev plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.16dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.15dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.14dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.13dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.12dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.11dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.10dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.9dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.8dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.7dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.6dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.4dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.3dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.1dev-java plugins/core/spec/core/gui_spec.rb
redcar-dev-0.12.0dev-java plugins/core/spec/core/gui_spec.rb
redcar-0.11 plugins/core/spec/core/gui_spec.rb
redcar-0.11.0dev plugins/core/spec/core/gui_spec.rb
redcar-0.10 plugins/core/spec/core/gui_spec.rb
redcar-0.9.2 plugins/core/spec/core/gui_spec.rb