title: RSpec Post and Namespaces
body: <p>I first used this RSpec test to post to my Env controller. After changing the namespace of my controller I can't seem to appropriately post to this controller. The namespace is 'api', and I've tried moving the RSpec file into an 'api' folder, tried changing the actual post parameters themselves, and added 'Api::' to the describe block. Any thoughts?    </p>
  
  <pre><code>require 'spec_helper'
  
  describe Api::EnvsController do
  
      describe "POST create" do
          it "creates a new env" do
              expect { post :create, :env =&gt; {:name =&gt; "mym"} }.to change(Env,:count).by(1)
          end
      end
  end
  </code></pre>