From 46b83c9c5384a299cdc8d8c5381259b1f6d0e4aa Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 31 Dec 2009 02:56:55 +0000 Subject: Fixed example tests. * test:clean task also deletes .expected.html files * LinesOfCode encoder can deal with tokens that have no scanner. Tests were added for this. * JSON encoder load rubygems if necessary. * NEW :loc as an alias for :lines_of_code * NEW Scanner methods marshal_dump, marshal_load FIXED Tokens dumping (failed while trying to dump @scanner) --- rake_tasks/test.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rake_tasks') diff --git a/rake_tasks/test.rake b/rake_tasks/test.rake index f9619c7..bb22f36 100644 --- a/rake_tasks/test.rake +++ b/rake_tasks/test.rake @@ -46,6 +46,9 @@ namespace :test do for file in Dir['test/scanners/**/*.actual.*'] rm file end + for file in Dir['test/scanners/**/*.expected.html'] + rm file + end end desc 'run all tests on all supported Ruby platforms' @@ -68,4 +71,4 @@ namespace :test do end task :test => %w( test:functional test:scanners ) -task :samples => 'test:samples' +task :samples => 'test:samples' \ No newline at end of file -- cgit v1.2.1