Sha256: 6ca2e8e22f88142ac41e18844aeabda599415121d3b07d90e418b9d1749cb1c2
Contents?: true
Size: 559 Bytes
Versions: 5
Compression:
Stored size: 559 Bytes
Contents
require 'rails_helper' RSpec.describe '/de/backend/core/active_storage/blobs', type: :feature do let(:resource_class) { ActiveStorage::Blob } let(:resource) { create(:active_storage_blob) } let(:resources) { create_list(:active_storage_blob, 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