                                        :port         8192})]
     #(.stop server)))
 
-#_
 (describe "io.aviso.rook.swagger"
 
   (it "can construct swagger data"
-      (let [data (swagger-object nil nil
-                                 ["hotels" 'hotels
-                                  [[:hotel-id "rooms"] 'rooms]])]
-        #_ (should= expected-swagger-data data)))
+      (should-not-be-nil (swagger-object nil swagger-options
+                                         ["hotels" 'hotels
+                                          [[:hotel-id "rooms"]
+                                           'rooms]])))
 
   (context "end-to-end (synchronous)"
 
-    (with-all handler (-> (rook/namespace-handler {:swagger true}
+    (with-all handler (-> (rook/namespace-handler {:swagger-options swagger-options}
                                                   ["hotels" 'hotels
                                                    [[:hotel-id "rooms"] 'rooms]])
                           rook/wrap-with-standard-middleware))

                      expected-status#
                      (pretty-print response#))))))

(defn tap
  [message data]
  (l/debugf "%s: %s" message (pretty-print data))
  data)

(def expected-swagger-data
  {})


(def swagger-options (-> rs/default-swagger-options
                         (assoc-in [:template :info :title] "Hotels and Rooms API")
                         (assoc-in [:template :info :version] "Pre-Alpha")))

(binding [t/*log-trace-level* :info]
  (-> (swagger-object nil swagger-options
                      ["hotels" 'hotels
                       [[:hotel-id "rooms"] 'rooms]])

  [path]
  (client/get (str "http://localhost:8192" path)
              {:throw-exceptions false
               :accept           :json}))

(defmacro should-have-status
  [expected-status response]
