Sha256: d2dd543a3063f5ce686d941aee2cda1bf95a65494ec8d41e7ee81d0879aa57b8
Contents?: true
Size: 606 Bytes
Versions: 5
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module Decidim module Pages describe DestroyPage, :db do describe "call" do let(:feature) { create(:feature, manifest_name: "pages") } let!(:page) { create(:page, feature: feature) } let(:command) { described_class.new(feature) } it "broadcasts ok" do expect { command.call }.to broadcast(:ok) end it "deletes the page associated to the feature" do expect do command.call end.to change { Page.count }.by(-1) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems