DEV: Remove deprecated spec
This commit is contained in:
parent
3b2f10a450
commit
23904fcc3b
|
@ -68,32 +68,6 @@ describe 'integration tests' do
|
||||||
end
|
end
|
||||||
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
|
describe "on assign_topic event" do
|
||||||
let(:post) { Fabricate(:post) }
|
let(:post) { Fabricate(:post) }
|
||||||
let(:topic) { post.topic }
|
let(:topic) { post.topic }
|
||||||
|
|
Loading…
Reference in New Issue