add a default test task this way running "rake" will execute the tests

pull/534/head
Todd Fisher 1 year ago
parent a210f01215
commit f3523d24ba
No known key found for this signature in database
GPG Key ID: 15A1619895B1FB4A

@ -1,4 +1,5 @@
require 'erb'
require 'rake/testtask'
require 'rubygems/package'
BUILD_VERSION=1
@ -9,6 +10,14 @@ else
CURRENT_VERSION = "0.0.0.#{BUILD_VERSION}"
end
desc "Default Task (Test project)"
task :default => :test
Rake::TestTask.new(:test) do |t|
t.test_files = FileList['tests/test_*.rb']
t.verbose = false
end
desc 'Generate gem specification'
task :gemspec do
system("cp ../../LICENSE .")

Loading…
Cancel
Save