title: Can't test a post request in rspec and rails
body: <p>I've been looking all over the internet, but I can't seem to get this to work.</p>
  
  <p>All I want to do is send a post request and test the response in rspec.</p>
  
  <p>Here's what I have in my controller_spec:</p>
  
  <pre><code>it 'my test' do
    post 'api/company_id', :parameters =&gt; {key =&gt; 'value'}
    response.should be_success
  end
  </code></pre>
  
  <p>I get this error:
      unexpected $end, expecting keyword_end (SyntaxError)</p>
  
  <p>This is on the line on which the post statement happens (second line in code block).</p>
  
  <p>I'm stumped but any help would be great.</p>