title: How to get current path with query string using Capybara
body: <p>The page url is something like <code>/people?search=name</code>
  while I used <code>current_path</code> method of capybara it returned <code>/people</code> only.</p>
  
  <pre><code>current_path.should == people_path(:search =&gt; 'name')
  </code></pre>
  
  <p>But it fails saying</p>
  
  <pre><code>expected: "/people?search=name"
  got: "/people"
  </code></pre>
  
  <p>How we can make it pass? Is there is any way to do this?</p>