Permalink
Browse files

Compatibility with clojure 1.3.0+

  • Loading branch information...
1 parent f103372 commit 29dfa5c7713e9440fc09e78044e13a7097eed68e @dnaumov dnaumov committed May 17, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 project.clj
  2. +1 −1 src/robert/hooke.clj
  3. +1 −1 test/robert/test_hooke.clj
View
@@ -1,6 +1,6 @@
(defproject robert/hooke "1.1.3"
:description "Hooke your functions!"
- :dev-dependencies [[org.clojure/clojure "1.2.1"]]
+ :dev-dependencies [[org.clojure/clojure "1.4.0"]]
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:test-selectors {:default (complement :skip)})
View
@@ -95,5 +95,5 @@
(defmacro with-hooks-disabled [v & body]
`(do (when-not (:robert.hooke/hook (meta ~v))
(throw (Exception. (str "No hooks on " ~v))))
- (binding [~v (:robert.hooke/original (meta ~v))]
+ (with-redefs [~v (:robert.hooke/original (meta ~v))]
~@body)))
@@ -62,7 +62,7 @@
(is (= :hello (ohai)))
(is @appended))
-(defn ^{:dynamic true} another-fn []
+(defn another-fn []
true)
(deftest test-without-hooks

0 comments on commit 29dfa5c

Please sign in to comment.