title: Rails: multiple get requests in a single functional test
body: <p>I would like to group some get requests in the same tests but I get erratic behavior. I have the following two tests:</p>
  
  <pre><code>test 'index for local seller (same site)' do
    seller = FactoryGirl.create :seller, business_site: @open_or.business_site
    get :index, nil, {user_id: seller.to_param }
    assert_select "table#order_requests tr##{@controller.view_context.dom_id @open_or}"
  end
  test 'index for local seller (different site)' do
    seller = FactoryGirl.create :seller_local
    get :index, nil, {user_id: seller.to_param }
    assert_select "table#order_requests tr##{@controller.view_context.dom_id @open_or}", false
  end
  </code></pre>
  
  <p>which I would like to combine under one test but if I do so, the second assert will wrongly fail (Expected exactly 0 elements matching "table#order_requests tr#order_request_1000244799", found 1.). I don't really understand why? Something might not be reset properly for the second 'get' call. I looked for ways to 'reset' the request without success.</p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/7850650/making-two-requests-to-the-same-controller-in-rails-integrations-specs">making two requests to the same controller in rails integrations specs</a></p>