Permalink
Browse files

Refactor: Convert keyword to a string name

  • Loading branch information...
josephwilk committed Apr 10, 2013
1 parent 06793ab commit 37770587305bfff8a97dd490257467bae4768361
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/midje/emission/colorize.clj
@@ -10,7 +10,9 @@
(config/choice :colorize))
(defn- colorize-config-as-str []
- (let [setting-as-str (str (colorize-setting))]
+ (let [setting (colorize-setting)
+ setting (if (keyword? setting) (name setting) setting)
+ setting-as-str (str setting)]
(when-not (str/blank? setting-as-str) setting-as-str)))
(defn- colorize-choice []
@@ -25,7 +27,7 @@
(def pass color/green)
(def note color/cyan))
- ("REVERSE" ":REVERSE") (do
+ "REVERSE" (do
(def fail color/red-bg)
(def pass color/green-bg)
(def note color/cyan-bg))

0 comments on commit 3777058

Please sign in to comment.