Sha256: 84d116d9da51d482179d3b3c57a1351b49a96e63a02a48b764d75ae0fe14bbb1
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
require 'rubygems' require 'test/unit' require 'tmpdir' require 'shoulda' require 'redgreen' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'csd' class Test::Unit::TestCase def ensure_mkdir(target) target = Pathname.new(target) unless target.is_a?(Pathname) target.mkpath assert target.directory? target end def assert_includes(elem, array, message = nil) message = build_message message, ' is not found in .', elem, array assert_block message do array.include? elem end end def assert_excludes(elem, array, message = nil) message = build_message message, ' is found in .', elem, array assert_block message do !array.include? elem end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
csd-0.1.7 | test/helper.rb |
csd-0.1.6 | test/helper.rb |
csd-0.1.5 | test/helper.rb |