Sha256: 5f14af4a8f1370c328c31019fbdaa73531862f9ff85681ba3bf66b66fb2dfd2e
Contents?: true
Size: 883 Bytes
Versions: 6
Compression:
Stored size: 883 Bytes
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved. # License:: LGPL # $Id: /w/fey/uttk/trunk/lib/uttk/strategies/Proxy.rb 22102 2006-02-21T23:03:39.538964Z pouillar $ module Uttk module Strategies # I'm composed by only one strategy and I'm transparent in the log. class Proxy < Composite include Abstract def create ( anObject, &block ) unless @contents.empty? raise ArgumentError, "A proxy can contain only one test" end super end def run_composite test = @contents.first test.name ||= 'test' run_test(test, @log) end protected :run_composite def new_symtbl @symtbl end protected :new_symtbl end # class Proxy end # module Strategies end # module Uttk
Version data entries
6 entries across 6 versions & 1 rubygems