DEV: Remove deprecated spec

DEV: Remove deprecated spec

diff --git a/spec/integration/assign_spec.rb b/spec/integration/assign_spec.rb
index d57fc11..e31591d 100644
--- a/spec/integration/assign_spec.rb
+++ b/spec/integration/assign_spec.rb
@@ -68,32 +68,6 @@ describe 'integration tests' do
     end
   end
 
-  describe "on before_staff_flag_action event" do
-    let(:post) { Fabricate(:post) }
-    let(:user) { Fabricate(:user) }
-    let(:args) { { post: post, user: user } }
-
-    before do
-      SiteSetting.assign_locks_flags = true
-
-      TopicCustomField.create!(
-        topic_id: post.topic_id,
-        name: TopicAssigner::ASSIGNED_TO_ID,
-        value: Discourse.system_user.id
-      )
-    end
-
-    it "do not raise error if topic is deleted", unless: defined?(Reviewable) do
-      expect { DiscourseEvent.trigger(:before_staff_flag_action, args) }
-        .to raise_error(Discourse::InvalidAccess)
-
-      post.topic.destroy!
-      post.reload
-
-      DiscourseEvent.trigger(:before_staff_flag_action, args)
-    end
-  end
-
   describe "on assign_topic event" do
     let(:post) { Fabricate(:post) }
     let(:topic) { post.topic }

GitHub sha: 23904fcc

1 Like