Sha256: c0e0b46acd8477b6835d413ef5b084011d92a099ee5b77f80bc58afb146d6f1c
Contents?: true
Size: 607 Bytes
Versions: 7
Compression:
Stored size: 607 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
7 entries across 7 versions & 1 rubygems