Sha256: c5c3f906972ddf902d80727037e2fcaf57c6df6bf7532c6e13066cd7d3aef019
Contents?: true
Size: 694 Bytes
Versions: 1
Compression:
Stored size: 694 Bytes
Contents
require 'spec_helper' module WindowBlessing describe "EventQueue" do include Tools it "new" do em = EventQueue.new em.queue.should == [] end it "<<" do em = EventQueue.new em << 1 em.queue.should == [1] em << [2,3] em.queue.should == [1,2,3] end it "clear" do em = EventQueue.new em << 1 em.clear em.queue.should == [] end it "clear" do em = EventQueue.new em.empty?.should == true em << 1 em.empty?.should == false em.clear em.empty?.should == true end it "pop_all" do em = EventQueue.new em << 1 em << 2 a = em.pop_all a.should == [1,2] em.queue.should == [] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
window_blessing-0.0.4 | spec/event_queue_spec.rb |