title: Scope constants to an rspec context
body: <p>I often want to do</p>
  
  <pre><code>context "empty stack" do
    SOME_CONSTANT = "value"
    it "should be empty" do
      # use SOME_CONSTANT
    end
  end
  
  context "populated stack" do
    SOME_CONSTANT = "a different value"
    it "should have some items" do
      # use SOME_CONSTANT
    end
  end
  </code></pre>
  
  <p>ruby doesn't scope constants to closures so they leak out. Does anyone have a trick for declaring constants that are scoped to a context?</p>