make sure task cleans up

This commit is contained in:
John Bintz 2012-03-15 16:40:06 -04:00
parent cb222198ce
commit 8f13485f54

View File

@ -19,6 +19,7 @@ module Flowerbox
desc "Run Flowerbox for the tests in #{options[:dir]}" desc "Run Flowerbox for the tests in #{options[:dir]}"
task(name) do task(name) do
raise StandardError.new("Flowerbox tests failed") if Flowerbox.run(@options[:dir], @options) != 0 raise StandardError.new("Flowerbox tests failed") if Flowerbox.run(@options[:dir], @options) != 0
Flowerbox.cleanup!
end end
end end
end end