From c53729248c1841ce1ef02f5c215f852d0551da93 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Sun, 10 Jun 2012 22:07:14 +0200 Subject: [PATCH] spec output can now be specified by setting the output environment variable (ex. rake spec output=test_unit) --- lib/motion/spec.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/motion/spec.rb b/lib/motion/spec.rb index 7e4536b8..c2b14192 100644 --- a/lib/motion/spec.rb +++ b/lib/motion/spec.rb @@ -116,7 +116,16 @@ module Bacon def handle_summary; end end - extend SpecDoxOutput # default + extend case ENV['output'] + when nil, 'spec_dox' + SpecDoxOutput # default + when 'test_unit' + TestUnitOutput + when 'tap' + TapOutput + when 'knock' + KnockOutput + end class Error < RuntimeError attr_accessor :count_as