title: Any way to debug RSpec request specs?
body: <p>I am writing a test for a Rails API in RSpec and the endpoint has token authentication set up. I need to pass an Authorization header in the request, but I keep getting a 401 unauthorized error. Is there any way to debug and get some insight into actually which headers are being passed etc. from these types of specs? Otherwise it seems like shooting in the dark. I should note that the token provided below is working perfectly in Postman.</p>
  
  <pre><code>describe "Chirps API" do
      it "GET /chirps should return 200" do
          get "/chirps", headers: {
              "Authorization": "Token token=7cc9f851ea0e4013b7b15ec9131f6d58"
          }
  
          expect(response).to have_http_status(200)
      end
  end
  </code></pre>