title: Disable a group of tests in rspec?
body: <p>I have a test spec which <code>describes</code> a class and within that has various <code>contexts</code> each with various <code>it</code> blocks.</p>
  
  <p>Is there a way I can disable a <code>context</code> temporarily?</p>
  
  <p>I tried adding a <code>pending "temporarily disabled"</code> call at the very top within a <code>context</code> I want to disable, and I did see something about pending when I ran the spec but then it just continued to run the rest of the tests.</p>
  
  <p>This is what I kind of had:</p>
  
  <pre><code>describe Something
    context "some tests" do
      it "should blah" do
        true
      end
    end
  
    context "some other tests" do
      pending "temporarily disabled"
  
      it "should do something destructive" do
        blah
      end
    end
  end
  </code></pre>
  
  <p>but like I said it just went on to run the tests underneath the pending call.</p>
  
  <p>Searching led me to this <a href="http://www.mail-archive.com/rspec-users@rubyforge.org/msg15297.html" rel="noreferrer">mailing list thread</a> in which the the creator (?) of rspec says it's possible in rspec 2, which I'm running. I guess it did work but it didn't have the desired effect of disabling all of the following tests, which is what I think of when I see a <code>pending</code> call.</p>
  
  <p>Is there an alternative or am I doing it wrong?</p>