DEV: Update rubocop-discourse (#30552)

…and autofix the issues
This commit is contained in:
Jarek Radosz
2025-01-04 13:48:21 +01:00
committed by GitHub
parent e2129dc07c
commit a4c2653db8
12 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,7 @@
describe "Topic" do
let!(:raw) { "this is me testing a new topic by automation" }
let!(:title) { "This is a new topic created by automation" }
fab!(:category) { Fabricate(:category) }
fab!(:category)
fab!(:tag1) { Fabricate(:tag) }
fab!(:tag2) { Fabricate(:tag) }

View File

@ -9,14 +9,14 @@ RSpec.describe DiscourseAutomation::Destroy do
subject(:result) { described_class.call(params:, **dependencies) }
fab!(:user) { Fabricate(:admin) }
fab!(:automation) { Fabricate(:automation) }
fab!(:automation)
let(:guardian) { user.guardian }
let(:params) { { automation_id: automation.id } }
let(:dependencies) { { guardian: } }
context "when user can't destroy the automation" do
fab!(:user) { Fabricate(:user) }
fab!(:user)
it { is_expected.to fail_a_policy(:can_destroy_automation) }
end