title: How to reuse the same test multiple times in RSPEC
body: <p>In one of my rspec test files, I need to run the following (otherwise identical) test in several different contexts:</p>
  
  <pre><code>describe "view the event with request" do
    before {
      click_link("Swimming lessons")
    }
  
    it { should have_content "Party Supplies"}
  
    describe "view the contribute form" do
      before {
        click_button("Party Supplies")
      }
  
      it {
        within("#bodyPopover") {
          should have_content('cupcakes')
          should have_content('napkins')
        }
      }
  
  
    end
  
  end
  </code></pre>
  
  <p>I'd like to be able to put all this in a method (say <code>view_the_event_and_contribute_form</code>) and just use that method in several places in the rest of the test. Can that be accomplished? I tried defining a method which simply had that code, but it didn't recognize <code>describe</code> from within that method.</p>
  
  <p>What's the best way to do this?</p>