Sha256: 2efc2bd806c25ac1f8ddee4564427b6d63ceccc09c13b1ed403fb89bc86db0b9
Contents?: true
Size: 405 Bytes
Versions: 2
Compression:
Stored size: 405 Bytes
Contents
#!/usr/bin/env ruby require 'fileutils' force = ARGV.delete('-f') || ARGV.delete('--force') name = ARGV.first file = "test/test_#{name}" content = <<-END require 'test_helper.rb' class TC_#{name} < Test::Unit::TestCase def test_#{name} end end END if File.exist?(file) && !force puts "overwrite -- #{file}" else mkdir_p("test") File.open("test/test_#{name}", 'w'){ |f| f << content } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sow-0.5 | plug/sow/seeds/testunit/template/form/testunit |
sow-0.4.0 | plug/sow/seeds/testunit/template/form/testunit |