summaryrefslogtreecommitdiff
path: root/rake_tasks
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-10-17 09:19:09 +0000
committermurphy <murphy@rubychan.de>2006-10-17 09:19:09 +0000
commit9be25abef4e3feb6dfeb06f6efd4eb2254806cbd (patch)
tree463be34b6211753fbf6378f75982b9ae59174acd /rake_tasks
parent5af1cca0499334b7bc29778844c28a5c8b7c05b8 (diff)
downloadcoderay-9be25abef4e3feb6dfeb06f6efd4eb2254806cbd.tar.gz
Renamed tests: .actual.* is (ignored) output, .expected.* is input now.
Added test:clean task.
Diffstat (limited to 'rake_tasks')
-rw-r--r--rake_tasks/test.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/rake_tasks/test.rake b/rake_tasks/test.rake
index 18e10d7..20bcf43 100644
--- a/rake_tasks/test.rake
+++ b/rake_tasks/test.rake
@@ -8,6 +8,13 @@ namespace :test do
task :scanners do
system 'ruby -wd ./test/scanners/suite.rb'
end
+
+ desc 'Clean test output files'
+ task :clean do
+ for file in Dir['test/scanners/**/*.actual.*']
+ rm file
+ end
+ end
end
task :test => %w( test:scanners )