#492: Need GCD Specs for Sources ----------------------------------------+----------------------------------- Reporter: ernest.prabha...@… | Owner: lsansone...@… Type: enhancement | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------------------+-----------------------------------
Comment(by conra...@…): 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/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel