title: Skip multiple examples in RSpec?
body: <p>Does anyone know a way to skip multiple examples within a group, without duplicating the skip statement between them?</p>
  
  <p>For example, given this test:</p>
  
  <pre class="lang-rb prettyprint-override"><code>describe 'some feature' do
    it 'should do something' do
      ...
    end
  
    it 'should do something else too' do
      ...
    end
  end
  </code></pre>
  
  <p>a <code>skip</code> doesn't work if placed before the first example, like so:</p>
  
  <pre class="lang-rb prettyprint-override"><code>describe 'some feature' do
    skip 'I would like to skip both with one statement'
  
    it 'should do something' do
      ...
    end
  
    it 'should do something else too' do
      ...
    end
  end
  </code></pre>
  
  <p>An ideal solution would allow me to skip at any level of the example structure (<code>describe</code>/<code>feature</code>, <code>context</code>, and <code>scenario</code>/<code>it</code>) and would skip all children of that level of the hierarchy.</p>
  
  <p>In other words, would allow me to do:</p>
  
  <pre class="lang-rb prettyprint-override"><code>describe 'some feature' do
    it 'should do something' do
      ...
    end
  
    it 'should do something else too' do
      skip 'just one of these for now'
      ...
    end
  end
  </code></pre>
  
  <p>AND</p>
  
  <pre class="lang-rb prettyprint-override"><code>describe 'some feature' do
    skip 'everything within this describe block'
  
    it 'should do something' do
      ...
    end
  
    it 'should do something else too' do
      ...
    end
  end
  </code></pre>
  
  <p>AS WELL AS</p>
  
  <pre class="lang-rb prettyprint-override"><code>describe 'some feature' do
    context 'such and such' do
      skip 'just this context'
  
      it 'should do something' do
        ...
      end
  
      it 'should do something else too' do
        ...
      end
  
    it 'but do not skip this one' do
      ...
    end
  end
  </code></pre>