Permalink
Browse files

Renamed routes.param to routes.params.

  • Loading branch information...
1 parent 0f1621c commit f0e22dc8290f126a9dc6298c34193f8e64cfc311 @r0man committed Aug 10, 2012
View
@@ -10,7 +10,7 @@
:plugins [[lein-cljsbuild "0.2.4"]]
:hooks [leiningen.cljsbuild]
:cljsbuild {:builds [{:compiler {:output-to "target/routes-test.js"
- :optimizations :advanced
+ :optimizations :whitespace
:pretty-print true}
:source-path "test/cljs"}
{:compiler {:output-to "target/routes-debug.js"
@@ -24,7 +24,9 @@
:jar true}]
:crossover-jar true
:crossover-path ".crossover-cljs"
- :crossovers [routes.helper routes.server]
+ :crossovers [routes.helper
+ routes.params
+ routes.server]
:repl-listen-port 9000
:repl-launch-commands
{"chromium" ["chromium" "http://localhost:9000/"]
View
@@ -32,7 +32,7 @@
(defmacro defparam [name doc & [format-fn parse-fn]]
(let [name# name]
`(def ~name#
- (routes.param/->Parameter
+ (routes.params/->Parameter
~(str name#)
~doc
(or ~format-fn str)
@@ -1,4 +1,4 @@
-(ns routes.param
+(ns routes.params
(:refer-clojure :exclude [format])
(:require;*CLJSBUILD-REMOVE*;-macros
[routes.core :refer [defparam]])
@@ -1,5 +1,5 @@
(ns routes.test.core
- (:require [routes.param :as params])
+ (:require [routes.params :as params])
(:use clojure.test
routes.core
routes.helper
@@ -1,6 +1,6 @@
(ns routes.test.fixtures
(:require [routes.core :refer [defroute]]
- [routes.param :as params]
+ [routes.params :as params]
[routes.server :refer [example]]))
(def europe {:id 1 :name "Europe"})
@@ -1,6 +1,6 @@
(ns routes.test.param
(:require [clojure.test :refer :all]
- [routes.param :refer :all]))
+ [routes.params :refer :all]))
(deftest test-format-integer
(is (= "1" (-format integer 1))))

0 comments on commit f0e22dc

Please sign in to comment.