title: Best way to test DELETE requests with Rspec?
body: <p>I started using that way:</p>
  
  <pre><code>  describe "DELETE /v1/categories/{id}" do
     before(:each) do
       #   Login User/Token
     end
     it 'deletes a category' do
       category = Fabricate(:category)
       category2 = Fabricate(:category)
  
       get "/v1/categories"
       expect(response.status).to eq 200
       expect(JSON.parse(response.body)).to eq([YAML.load(category.to_json),YAML.load(category2.to_json),])
  
       delete "/v1/categories/#{category.id}"
       expect(response.status).to eq 200
  
       get "/v1/categories"
       expect(JSON.parse(response.body)).to eq([YAML.load(category2.to_json)])
     end
   end
  </code></pre>
  
  <p>I'm not sure if is the best way to test an API Request to delete data.</p>