Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix failing test for present validation when map value is not a string

  • Loading branch information...
commit 6062018c84418d32000540f140004e205a0de898 1 parent 403a877
@ryantm ryantm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/vlad/validations.clj
2  src/vlad/validations.clj
@@ -10,7 +10,7 @@
(validate (present :name)
{:name \"Vlad\"})"
- (predicate selector str/blank? {:type ::present}))
+ (predicate selector #(if (string? %) (str/blank? %) true) {:type ::present}))
(defn length-over
"Checks that the `count` of the value found at `selector` is over `size`."
Please sign in to comment.
Something went wrong with that request. Please try again.