Sha256: b281c878af90c3ea4a3c62f7cec2beb22382400be06e5590153cb51b456a50c0

Contents?: true

Size: 466 Bytes

Versions: 23

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Azeroth::RequestHandler::Destroy do
  describe '#process' do
    it_behaves_like 'a request handler' do
      let(:expected_resource) { document }
      let!(:document)         { create(:document) }

      let(:extra_params) { { id: document.id } }

      it 'updates the values' do
        expect { handler.process }
          .to change(Document, :count)
          .by(-1)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
azeroth-0.3.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.2.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.1.0 spec/lib/azeroth/request_handler/destroy_spec.rb