title: Rspec Strong Parameter stripping out params
body: <p>I'm failing a not-null condition in model creation, thanks, I think, to strong parameters removing things from my params hash.</p>
  
  <p>Rspec code:</p>
  
  <pre><code>it "creates a new Provider" do
      expect {
        post :create, {:admin_provider =&gt; {:name =&gt; "foo bar"}}, valid_session
      }.to change(Provider, :count).by(1)
  end
  </code></pre>
  
  <p>Controller Code:</p>
  
  <pre><code>def create
    @admin_provider = Provider.new(okay_params)
  
    respond_to do |format|
      ...Render Views
    end
  end
  
  def okay_params
    params.permit(:admin_provider).permit(:name)
  end
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Admin::ProvidersController POST create with valid params creates a new Provider
   Failure/Error: post :create, {:admin_provider =&gt; {:name =&gt; "foo bar"}}, valid_session
   ActiveRecord::StatementInvalid:
     PG::NotNullViolation: ERROR:  null value in column "name" violates not-null constraint
     DETAIL:  Failing row contains (225, null, null, null, t, null, null, null, null, null, null, null, null).
     : INSERT INTO "providers" DEFAULT VALUES RETURNING "id"
  </code></pre>
  
  <p><strong>What happened to my params to strip out the "name" parameter?</strong>  I've tried it as a symbol and a string.  I've tried it as a let block instead of hardcoding.  No difference.  Every time it seems to be stripping out my params.  What am I missing?</p>