From 5a865e429d8ea612f64e091b61b06b4f786f5484 Mon Sep 17 00:00:00 2001 From: Paul Stadig Date: Sat, 21 Feb 2015 07:27:33 -0500 Subject: [PATCH] Activate using injections for the test profile. --- project.clj | 4 +++- test/pjstadig/humane_test_output_test.clj | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/project.clj b/project.clj index 70a6489..45aece8 100644 --- a/project.clj +++ b/project.clj @@ -3,4 +3,6 @@ :url "http://github.com/pjstadig/humane-test-output/" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} - :profiles {:dev {:dependencies [[org.clojure/clojure "1.3.0"]]}}) + :profiles {:dev {:dependencies [[org.clojure/clojure "1.3.0"]]} + :test {:injections [(require 'pjstadig.humane-test-output) + (pjstadig.humane-test-output/activate!)]}}) diff --git a/test/pjstadig/humane_test_output_test.clj b/test/pjstadig/humane_test_output_test.clj index 5678a9b..0d8e805 100644 --- a/test/pjstadig/humane_test_output_test.clj +++ b/test/pjstadig/humane_test_output_test.clj @@ -1,8 +1,5 @@ (ns pjstadig.humane-test-output-test - (:use [clojure.test] - [pjstadig.humane-test-output])) - -(activate!) + (:use [clojure.test])) (deftest a-test (testing "FIXME, I fail."