* Removing the stackbit integration The feature didn't quite work and Stackbit no longer supports this integration. Yes there are a few places where the webhooks has a string of "stackbit" but I'm hesitant to remove that, as they are the part of the Webhooks tests. Closes #15700 * Update lib/data_update_scripts/20211206222716_remove_stackbit_page.rb Co-authored-by: Michael Kohl <citizen428@forem.com> Co-authored-by: Michael Kohl <citizen428@forem.com>
15 lines
433 B
Ruby
15 lines
433 B
Ruby
require "rails_helper"
|
|
require Rails.root.join(
|
|
"lib/data_update_scripts/20211206222716_remove_stackbit_page.rb",
|
|
)
|
|
|
|
describe DataUpdateScripts::RemoveStackbitPage do
|
|
it "idempotently destroys the Stackbit page" do
|
|
create(:page, slug: "connecting-with-stackbit")
|
|
expect { described_class.new.run }
|
|
.to change(Page, :count).by(-1)
|
|
|
|
expect { described_class.new.run }
|
|
.not_to change(Page, :count)
|
|
end
|
|
end
|