Sha256: 1e4be209f80aca269eb6d87c6e1bdab10a6cb3af307e6ff426504d4750dde120
Contents?: true
Size: 583 Bytes
Versions: 5
Compression:
Stored size: 583 Bytes
Contents
require 'rails_helper' RSpec.describe '/de/backend/core/active_storage/attachments', type: :feature do let(:resource_class) { ActiveStorage::Attachment } let(:resource) { create(:active_storage_attachment) } let(:resources) { create_list(:active_storage_attachment, 3) } # List it { resources; expect(subject).to implement_index_action(self) } # Read it { expect(subject).to implement_show_action(self).for(resource) } # Delete it { expect(subject).to implement_delete_action(self) .for(resource) .reducing{ resource_class.count }.by(1) } end
Version data entries
5 entries across 5 versions & 1 rubygems