Sha256: 51e48a2875c432ce9a8e5b2b4ce96e7738f647ede230d2fba9e6916e79c01018
Contents?: true
Size: 412 Bytes
Versions: 6
Compression:
Stored size: 412 Bytes
Contents
class Test::Unit::TestCase class << self def should_generate_file(file, &block) should "generate file #{file}" do yield("foo") if block_given? assert_generated_file(file) end end def should_not_generate_file(file) should "not generate file #{file}" do assert !File.exists?(file),"The file '#{file}' should not exist" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems