Skip to content

Commit

Permalink
Cover URL encoding of index keys
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed May 19, 2012
1 parent da67fd7 commit 7e1ccd6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/clojurewerkz/neocons/rest/test_indexing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
(is (ids (:id node1)))
(is (not (ids (:id node2)))))))

(deftest ^{:indexing true} test-finding-a-node-with-url-unsafe-key-to-index
(let [idx (nodes/create-index "uris")
uri "http://arstechnica.com/search/?query=Diablo+III"
home (nodes/create {:uri uri})]
(nodes/add-to-index (:id home) (:name idx) "uri" uri)
(nodes/find-one (:name idx) :uri uri)
(nodes/delete-from-index (:id home) (:name idx))))

(deftest ^{:indexing true} test-removing-a-node-removes-it-from-indexes
(let [node1 (nodes/create {:name "Wired"})
url1 "http://wired.com"
Expand Down

0 comments on commit 7e1ccd6

Please sign in to comment.