Sha256: 49485eaaa63d2ceb8889b5cc86b9a6c3314ed3c33095f151a3d25657be97e40d
Contents?: true
Size: 884 Bytes
Versions: 3
Compression:
Stored size: 884 Bytes
Contents
# Author:: Nicolas Pouillard <ertai@lrde.epita.fr>. # Copyright:: Copyright (c) 2005 Uttk Team. All rights reserved. # License:: LGPL # Revision:: $Id: /fey/uttk/trunk/lib/uttk/strategies/Assert.rb 8789 2005-09-27T14:49:49.088376Z ertai $ require 'test/unit' Test::Unit.run = true # require 'test/unit/testcase' # FIXME require just this 'test/unit/assertions' module Uttk module Strategies class Assert < Block include Concrete include ::Test::Unit::Assertions # # Methods # def prologue super @assertion_count = 0 end protected :prologue def assertion fail @raised_exception if @raised_exception pass end protected :assertion def add_assertion @assertion_count += 1 end end # class Assert end # module Strategies end # module Uttk
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uttk-0.3.5.0 | lib/uttk/strategies/Assert.rb |
uttk-0.3.1.2 | lib/uttk/strategies/Assert.rb |
uttk-0.3.6.1 | lib/uttk/strategies/Assert.rb |