title: How to verify params[:][:] value by "assigns" in rspec controller
body: <p>Following is my controller code:</p>
  
  <pre><code> def create
          params[:order][:user_id]=current_user.id
          params[:order][:company_id]=current_company.id
          :
          : 
   end
  </code></pre>
  
  <p>In my rspec controller test i want to test create method so in that i have to test for </p>
  
  <pre><code>assigns(params[:order][:user_id]).should eq(user)
  assigns(params[:order][:company_id]).should eq(compnay)
  </code></pre>
  
  <p>user and company i set in let and stub as current_user,current_compnay so i get the value for current_user.id andcurrent_company.id . My issue is how can i verify params variable in which we provide value in controller.</p>
  
  <p>currently above rspec lines not working. can anyone help me to resolve above issue?</p>