title: Rails - Rspec - stub params
body: <p>I created some public method in controller which does some work.</p>
  
  <pre><code> def current_service
      service_name = params[:controller].gsub('api/v1/', '').gsub(%r{/.+}, '')
   end
  </code></pre>
  
  <p>I would like to test this method using RSpec but I dont't know how can I stub params. How should I do that?</p>