title: How can i populate database when using rspec
body: <p>I'm using rspec to test my web services but when i looks in my database after each test ,i don't get anything in tables so please help me out to resolve this problem.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>**require 'rails_helper'
  
  RSpec.describe "User management", :type =&gt; :request do
  
  context "create users" do
    it "creates a user by supplying facebook_token" do
      headers = { "CONTENT_TYPE" =&gt; "application/json",
                  "ACCEPT" =&gt; ""
       }
      post "/api/users", '{ "user": { "facebook_user_token":"" } }', headers
      expect(response).to be_success
    end
  end  
  
  end**  
  </code></pre>