Sha256: 3832778a485e5187421479893b4c879541e9172a5be132d7b4066a9331293b4f
Contents?: true
Size: 419 Bytes
Versions: 4
Compression:
Stored size: 419 Bytes
Contents
require 'rails_helper' RSpec.describe "<%= type %>#destroy", type: :request do context 'basic destroy' do let!(:<%= file_name %>) { FactoryGirl.create(:<%= file_name %>) } it 'updates the resource' do expect { delete "/<%= api_namespace %>/v1/<%= type %>/#{<%= file_name %>.id}" }.to change { <%= model_klass %>.count }.by(-1) expect(response.status).to eq(204) end end end
Version data entries
4 entries across 4 versions & 1 rubygems