Skip to content

Commit

Permalink
Changed name of json-str to write-json.
Browse files Browse the repository at this point in the history
  • Loading branch information
otabat committed Apr 7, 2013
1 parent cdcad74 commit fea522b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/couchbase_clj/util.clj
Expand Up @@ -10,4 +10,4 @@
(json/read-json data true false "")))

(def ^{:doc "Wrapper of clojure.data.json/json-str.\n Just for convenience."}
json-str json/json-str)
write-json json/json-str)
4 changes: 2 additions & 2 deletions test/couchbase_clj/test/util.clj
Expand Up @@ -11,7 +11,7 @@
(is (= [1 2 3] (util/read-json (json/json-str [1 2 3]))))
(is (= nil (util/read-json nil)))))

(deftest json-str-test
(deftest write-json-test
(testing "convert clojure data to json data"
(is (= util/json-str json/json-str))))
(is (= util/write-json json/json-str))))

0 comments on commit fea522b

Please sign in to comment.