Sha256: 8bf7db86b42b8c15f5666d464c39619d90b2596b2022083007b3f183086a6883

Contents?: true

Size: 797 Bytes

Versions: 6

Compression:

Stored size: 797 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'shoulda'
require 'tmpdir'
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

6 entries across 6 versions & 1 rubygems

Version Path
csd-0.1.4 test/helper.rb
csd-0.1.3 test/helper.rb
csd-0.1.2 test/helper.rb
csd-0.1.1 test/helper.rb
csd-0.1.0 test/helper.rb
csd-0.0.16 test/helper.rb