From fc894ee49081974acc87cfc234511858109d1d24 Mon Sep 17 00:00:00 2001 From: Justin Knowlden Date: Sun, 4 Oct 2009 12:18:58 -0500 Subject: [PATCH] Running Riot report at exit --- Rakefile | 1 - test/test_helper.rb | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 61cd6cc..56dbb58 100644 --- a/Rakefile +++ b/Rakefile @@ -7,7 +7,6 @@ desc "Run tests" task :test do $:.concat ['./test', './lib'] Dir.glob("./test/*_test.rb").each { |test| require test } - Riot.report end desc "Run Flog against library (except tests)" diff --git a/test/test_helper.rb b/test/test_helper.rb index 58ddef4..23bd4bb 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -52,3 +52,5 @@ def setup_and_run_context(name, *passes_failures_errors, &block) end Riot::Context.instance_eval { include RiotRails::Context } + +at_exit { Riot.report }