Skip to content

Instantly share code, notes, and snippets.

@tcrayford
Created May 20, 2010 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcrayford/408283 to your computer and use it in GitHub Desktop.
Save tcrayford/408283 to your computer and use it in GitHub Desktop.
(ns clojure_refactoring.rename-fn-test
(:use clojure.test))
(deftest test-fn-location
(in-ns 'refactoring-test-fn-rename)
(clojure.core/refer-clojure)
(defn a [b] (inc b))
(in-ns 'clojure_refactoring.rename-fn-test)
(refer 'refactoring-test-fn-rename)
(is (not= (find-var 'refactoring-test-fn-rename/a)
nil))
(remove-ns 'refactoring-test-fn-rename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment