Sha256: cbfd76aea8dd6439ee2600b4c29cef4676da8a4b089f11737b961dff772ac106
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
namespace :teatime do desc 'Generates test_helper and Teafile with default settings' task :init do template_root = File.expand_path File.join('..', 'templates'), __FILE__ test_root = File.join('test', 'javascripts') FileUtils.mkdir_p test_root test_helper = File.join('test', 'javascripts', 'test_helper.js') teafile = 'Teafile' if !File.exist?(test_helper) FileUtils.cp File.join(template_root, 'test_helper.js'), test_helper puts "created #{test_helper.inspect}" end if !File.exist?(teafile) FileUtils.cp File.join(template_root, 'Teafile'), teafile puts "created #{teafile.inspect}" end end desc 'Serves the testsuite' task :serve do require 'teatime/server' Teatime::Server.run! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teatime-0.0.2 | lib/teatime/tasks/teatime.rake |
teatime-0.0.1 | lib/teatime/tasks/teatime.rake |