Permalink
Browse files

fix right-paren formatting

  • Loading branch information...
1 parent 3a592a0 commit cc8fea4c57f50f0fa02b73738d2a53e9c64c3e22 @rplevy rplevy committed Mar 22, 2012
@@ -12,7 +12,6 @@
(it "handles home page"
(let [result (do-get "/")]
(should= 200 (:status result))
- (should= "index" @rendered-template)))
- )
+ (should= "index" @rendered-template))))
(run-specs)
@@ -64,13 +64,10 @@
(it "resolve-controller can handle unhandled routes"
(reset! @ns-to-find nil)
(let [router (controller-router 'root)]
- (should= nil (router {:uri "/one"}))))
- )
+ (should= nil (router {:uri "/one"})))))
(it "handles nonexisting namespaces"
(binding [require (fn [name] (throw (java.io.FileNotFoundException. "Doesn't exist.")))]
- (should= nil (resolve-controller 'the.missing-controller))))
-
-)
+ (should= nil (resolve-controller 'the.missing-controller)))))
(run-specs)
@@ -106,8 +106,7 @@
(it "should know the day of a date"
(should= 1 (day (datetime 2011 1 1)))
- (should= 31 (day (datetime 2009 12 31))))
- )
+ (should= 31 (day (datetime 2009 12 31)))))
(run-specs)
@@ -18,8 +18,7 @@
(it "reads in all the system properties"
(doseq [[key value] (System/getProperties)]
- (should= value (env key))))
- )
+ (should= value (env key)))))
(run-specs)
@@ -43,7 +43,6 @@
(.parseArgs @server (into-array String ["-e" "staging"]))
(should= "staging" (.env @server))
(.parseArgs @server (into-array String ["--environment" "test"]))
- (should= "test" (.env @server)))
- )
+ (should= "test" (.env @server))))
(run-specs)
@@ -78,9 +78,6 @@
(reset! *env* {:joodo.core.namespace "joodo.kake.test-override-core"})
(initialize-joodo-servlet (FakeServlet.))
(should= nil (env :root-conf))
- (should= nil (env :env-conf)))
-
-
- )
+ (should= nil (env :env-conf))))
(run-specs)
@@ -27,8 +27,6 @@
(it "doesn't write to deleted session"
(reset! @outbound {:session nil :flash {:c "c"}})
- (should= {:session nil} (@wrapper {})))
-
- )
+ (should= {:session nil} (@wrapper {}))))
(run-specs)
@@ -17,9 +17,7 @@
(should= {:uri "/foo"} @@handled-request)
(@wrapper {:uri "/bar" :params {:a 1}})
- (should= {:uri "/bar" :params {:a 1}} @@handled-request))
-
- )
+ (should= {:uri "/bar" :params {:a 1}} @@handled-request)))
(run-specs)
@@ -1,8 +1,7 @@
(ns joodo.middleware.servlet-session-spec
(:use
[speclj.core]
- [joodo.middleware.servlet-session])
- )
+ [joodo.middleware.servlet-session]))
(deftype MockSession [store]
SessionContainer
@@ -59,8 +58,6 @@
(set-entry @session :bar "Bar")
(reset! @outbound {:session nil})
(@wrapper {:servlet-request @request})
- (should= 0 (count @(.store @session))))
-
- )
+ (should= 0 (count @(.store @session)))))
(run-specs)
@@ -25,8 +25,6 @@
(it "can also take a map as the first param"
((wrap-view-context @mock-handler {:foo "foo"} :bar "bar") {})
(should= "foo" (:foo @@view-context))
- (should= "bar" (:bar @@view-context)))
-
- )
+ (should= "bar" (:bar @@view-context))))
(run-specs)
@@ -20,8 +20,6 @@
(should= "one-two-three" (spear-case "OneTwo-Three"))
(should= "four" (spear-case "FOUR"))
(should= "fou-r" (spear-case "FOuR"))
- (should= "fi-ve" (spear-case "FI_VE")))
-
- )
+ (should= "fi-ve" (spear-case "FI_VE"))))
(run-specs)
@@ -41,8 +41,6 @@
(should= nested-output (pretty-map {:a 1 :a_ {:x 24 :y 25 :z 26} :b 2})))
(it "makes the map sorted"
- (should= sorted-output (pretty-map (apply hash-map (.split "once upon a midnight dreary while i pondered weak and weary there" " ")))))
-
- )
+ (should= sorted-output (pretty-map (apply hash-map (.split "once upon a midnight dreary while i pondered weak and weary there" " "))))))
(run-specs)
@@ -96,9 +96,7 @@
(should-throw
Exception
"Template Not Found: joodo/test_view/missing-layout.hiccup[.clj]"
- (render-template "test_template"))))
- )
- )
+ (render-template "test_template"))))))
(run-specs)
@@ -1,15 +1,13 @@
(ns ^{:doc "This namespace contains functions that are used to display the view files."}
joodo.views
- (:use
- [hiccup.core]
- [joodo.core :only (->options)]))
+ (:use [hiccup.core]
+ [joodo.core :only (->options)]))
(def ^{:doc "Var that holds a map with all the information required to render a page."}
*view-context*
{:template-root "view"
:layout "layout"
- :ns `joodo.kake.default-rendering
- })
+ :ns `joodo.kake.default-rendering})
(defn- updated-context [kwargs]
(merge *view-context* (->options kwargs)))

0 comments on commit cc8fea4

Please sign in to comment.