title: rspec controller test, get with multiple parameters
body: <p>I want to test to a controller that works on browser and looks like this</p>
  
  <pre><code>http://url.dev/jobs/1445.json?project_id=1144&amp;accesskey=MyString
  </code></pre>
  
  <p>this is what i have on my controler spec file:</p>
  
  <pre><code>params = {:id=&gt;"1445", :project_id=&gt;1144, :accesskey=&gt;"MyString"}
  get :show, params, format: :json
  </code></pre>
  
  <p>On the log i see:</p>
  
  <pre><code>Processing by JobsController#show as HTML
      Parameters: {"id"=&gt;"1440"}
  </code></pre>
  
  <p>Why it is trying to process as HTML and not as JSON? Why it only receives the id parameter?</p>
  
  <p>Also, if I do this:</p>
  
  <pre><code>get :show, id: params[:id], format: :json
  </code></pre>
  
  <p>It tries to process using JSON but it dont works because I need the other params.</p>