DEV: update syntax tree to latest (#24623)

update format to latest syntax tree
This commit is contained in:
Sam
2023-11-29 16:38:07 +11:00
committed by GitHub
parent d40c0b698c
commit b09422428d
35 changed files with 123 additions and 124 deletions

View File

@ -391,11 +391,11 @@ RSpec.describe PostDestroyer do
user_stat = post2.user.user_stat
called = 0
topic_destroyed = ->(topic, user) {
topic_destroyed = ->(topic, user) do
expect(topic).to eq(post2.topic)
expect(user).to eq(post2.user)
called += 1
}
end
DiscourseEvent.on(:topic_destroyed, &topic_destroyed)
@ -414,11 +414,11 @@ RSpec.describe PostDestroyer do
expect(user_stat.reload.topic_count).to eq(1)
called = 0
topic_recovered = ->(topic, user) {
topic_recovered = ->(topic, user) do
expect(topic).to eq(post2.topic)
expect(user).to eq(post2.user)
called += 1
}
end
DiscourseEvent.on(:topic_recovered, &topic_recovered)