[MacRuby-devel] [MacRuby] #492: Need GCD Specs for Sources

MacRuby ruby-noreply at macosforge.org
Tue Dec 8 19:05:36 PST 2009


#492: Need GCD Specs for Sources
----------------------------------------+-----------------------------------
 Reporter:  ernest.prabhakar@…          |       Owner:  lsansonetti@…        
     Type:  enhancement                 |      Status:  new                  
 Priority:  major                       |   Milestone:  MacRuby 0.5          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------

Comment(by conradwt@…):

 The first example within the example group, 'Dispatch::Source', should be
 split into 8 different tests being that they are independent.  For
 example,

 {{{

 it "returns sources from queue as an instance of Source" do
               file = File.new("/tmp/foo")
               signal = 9
               @q.on_add.should be_kind_of(Dispatch::Source)
               @q.on_or.should be_kind_of(Dispatch::Source)
               @q.on_process_status($$, :exit, :fork, :exec, :reap,
 :signal).should be_kind_of(Dispatch::Source)
               @q.on_timer(Time.now, 1, 0.1).should
 be_kind_of(Dispatch::Source)
               @q.on_file_status(file, :delete, :write, :extend, :attrib,
 :link, :rename, :revoke).should be_kind_of(Dispatch::Source)
               @q.on_read($stdin).should be_kind_of(Dispatch::Source)
               @q.on_write($stdout).should be_kind_of(Dispatch::Source)
               @q.on_signal(signal).should be_kind_of(Dispatch::Source)
             end

 }}}

 Also, I guess that you're meaning that you'll have different files for
 Group, Queue, and Source?

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/492#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list