Permalink
Browse files

isbnnetinclj2

  • Loading branch information...
1 parent a54d356 commit 50f4b178bb26acfac4154140eb6fd147a7af322d @swaroopch committed Jul 27, 2013
View
@@ -1 +1 @@
-web: lein trampoline run -m isbnnetinclj.server
+web: lein trampoline run -m isbnnetinclj2.server
View
@@ -1,4 +1,4 @@
-# isbnnetinclj #
+# isbnnetinclj2 #
A quick way to find the online prices for a book in India.
View
@@ -1,4 +1,4 @@
-(defproject isbnnetinclj "0.8"
+(defproject isbnnetinclj2 "0.8"
:description "A quick way to find the online prices for a book in India"
:url "http://isbn.net.in"
:license {:name "Eclipse Public License"
@@ -14,6 +14,6 @@
[clj-time "0.5.1"] ; https://github.com/clj-time/clj-time
]
:plugins [[lein-ring "0.8.5"]]
- :ring {:handler isbnnetinclj.handler/app}
+ :ring {:handler isbnnetinclj2.handler/app}
:profiles
{:dev {:dependencies [[ring-mock "0.1.5"]]}})
@@ -1,4 +1,4 @@
-(ns isbnnetinclj.handler
+(ns isbnnetinclj2.handler
(:use compojure.core)
(:require [compojure.handler :as handler]
[compojure.route :as route]))
@@ -1,14 +1,14 @@
-(ns isbnnetinclj.test.handler
+(ns isbnnetinclj2.test.handler
(:use clojure.test
- ring.mock.request
- isbnnetinclj.handler))
+ ring.mock.request
+ isbnnetinclj2.handler))
(deftest test-app
(testing "main route"
(let [response (app (request :get "/"))]
(is (= (:status response) 200))
(is (= (:body response) "Hello World"))))
-
+
(testing "not-found route"
(let [response (app (request :get "/invalid"))]
- (is (= (:status response) 404)))))
+ (is (= (:status response) 404)))))

0 comments on commit 50f4b17

Please sign in to comment.