Skip to content

Commit

Permalink
Updated test to reflect new app namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zk committed Mar 11, 2013
1 parent 2693aea commit 2a2ac1e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/clj/nsfw/test/github.clj
Expand Up @@ -2,8 +2,8 @@
(:use [nsfw.github] :reload) (:use [nsfw.github] :reload)
(:use [clojure.test]) (:use [clojure.test])
(:require [nsfw.server :as server] (:require [nsfw.server :as server]
[nsfw.webapp :as webapp] [nsfw.html :as html]
[nsfw.html :as html])) [nsfw.app :as app]))


(deftest test-auth-redirect-url (deftest test-auth-redirect-url
(is (= "https://github.com/login/oauth/authorize?client_id=c%2Fi&redirect_uri=r%2Fi&scope=f%2Fb%2Cbstate=s%2Fe" (is (= "https://github.com/login/oauth/authorize?client_id=c%2Fi&redirect_uri=r%2Fi&scope=f%2Fb%2Cbstate=s%2Fe"
Expand Down Expand Up @@ -104,13 +104,10 @@
[:div.email email]])])]]])}))) [:div.email email]])])]]])})))


(def entry-point (def entry-point
(webapp/routes (app/route
[""] (page :step1) [""] (page :step1)
["exchange"] (page :step2))) ["exchange"] (page :step2)))


(server/start :name server-name (server/start :name server-name
:port server-port :port server-port
:entry entry-point) :entry entry-point)



0 comments on commit 2a2ac1e

Please sign in to comment.