   current dynamic environment."
   (:use [lazytest.fixture :only (Fixture)]))
 
-(deftype ThreadLocalStub [v value]
+(deftype DynamicBindingStub [v value]
   Fixture
   (setup [this] (push-thread-bindings {v value}))
   (teardown [this] (pop-thread-bindings)))
 
-(deftype GlobalStub [v new-value]
+(deftype RootBindingStub [v new-value]
   Fixture
   (setup [this]
     (alter-meta! v (fn [m]

  new-value."
  [v new-value]
  {:pre [(var? v)]}
  (ThreadLocalStub. v new-value))

(defn global-stub
  "Returns a Fixture that modifies the root binding if Var v. The Var

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