   new-value."
   [v new-value]
   {:pre [(var? v)]}
-  (ThreadLocalStub. v new-value))
+  (DynamicBindingStub. v new-value))
 
 (defn global-stub
   "Returns a Fixture that modifies the root binding if Var v. The Var

  current dynamic environment."
  (:use [lazytest.fixture :only (Fixture)]))

(deftype ThreadLocalStub [v value]
  Fixture
  (setup [this] (push-thread-bindings {v value}))
  (teardown [this] (pop-thread-bindings)))

(deftype GlobalStub [v new-value]
  Fixture
  (setup [this]
    (alter-meta! v (fn [m]

  instead unless you need to stub the Var on all threads."
  [v new-value]
  {:pre [(var? v)]}
  (RootBindingStub. v new-value))
