Sha256: 956b9caa1cb9fae734cc3fbbe753d6cf5b3b9544a6ac21963752c574d7773527

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

module Gamefic

  module Tester
    def test_procs
      @test_procs ||= Hash.new
    end
    def on_test name = :me, &block
      test_procs[name] = block
    end
    def run_test name, actor
      queue = []
      stage actor, queue, &test_procs[name]
      actor.queue.push *queue
      actor[:test_queue_length] = queue.length
      actor[:test_queue_scene] = actor.scene
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gamefic-1.7.0 lib/gamefic/tester.rb
gamefic-1.6.0 lib/gamefic/tester.rb
gamefic-1.5.1 lib/gamefic/tester.rb
gamefic-1.5.0 lib/gamefic/tester.rb