title: Passing Object's Params into Rspec test with params.merge
body: <p>In my rspec test, I create an object with factorygirl, and in my create controller, I need parameters in order to create an object. Since there are lots of parameters and connection with paperclip, I do not want to give them by hand.
  My code is the following:</p>
  
  <pre><code>  it "should render correct JSON on success save" do
      @params = {}
      post(:create, @params.merge(:upload =&gt; FactoryGirl.create(:upload)))
      response.body.should == @upload.to_json
    end
  </code></pre>
  
  <p>So my problem is initializing the :upload's params. I'm already creating <code>@upload</code> object with factorygirl at the beginning with <code>before</code></p>
  
  <p>How should I solve this problem efficiently ?</p>
  
  <p>Thanks.</p>