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-1.0.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.10.1 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.10.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.9.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.8.2 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.8.1 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.8.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.7.4 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.7.3 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.7.2 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.7.1 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.7.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.6.5 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.6.4 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.6.3 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.6.2 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.6.1 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.6.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.5.0 spec/lib/azeroth/request_handler/destroy_spec.rb
azeroth-0.4.0 spec/lib/azeroth/request_handler/destroy_spec.rb