title: Rspec redirect_to show action
body: <p>I'm learning rails and have come across a problem with an Rspec.  I have the following test for a controller:</p>
  
  <pre><code>describe PostsController, "creating a new post" do
    it "should redirect and show the post" do
      Post.stub!(:save).and_return(true)
      post "create"
      response.should redirect_to :action =&gt; "show"
    end
  end
  </code></pre>
  
  <p>When I run this test I get the following failure:</p>
  
  <pre><code>PostsController creating a new post should redirect and show the post
  Failure/Error: response.should redirect_to :action =&gt; "show"
  ActionController::RoutingError:
    No route matches {:action=&gt;"show", :controller=&gt;"posts"}
    # ./spec/controllers/posts_controller_spec.rb:8:in `block (2 levels) in &lt;top       (required)&gt;'
  </code></pre>
  
  <p>Yet my when I check my routes I see my show action for my posts controller:</p>
  
  <pre><code>post GET    /posts/:id(.:format)      {:action=&gt;"show", :controller=&gt;"posts"}
  </code></pre>
  
  <p>I'm probably missing something very simple but struggling to find it.</p>
  
  <p>Thanks.</p>