mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:32:08 +08:00
DEV: Fix random typos (#22345)
This commit is contained in:
@ -813,7 +813,7 @@ RSpec.describe Guardian do
|
||||
expect(Guardian.new(user).can_see_deleted_post?(post)).to be_falsey
|
||||
end
|
||||
|
||||
it "returns false if not ther person who deleted it" do
|
||||
it "returns false if not the person who deleted it" do
|
||||
post.update!(deleted_by: another_user)
|
||||
expect(Guardian.new(user).can_see_deleted_post?(post)).to be_falsey
|
||||
end
|
||||
@ -4195,7 +4195,7 @@ RSpec.describe Guardian do
|
||||
expect(guardian.is_category_group_moderator?(plain_category)).to eq(false)
|
||||
expect(guardian.is_category_group_moderator?(plain_category)).to eq(false)
|
||||
|
||||
# edge case ... site setting disabled while guardian instansiated (can help with test cases)
|
||||
# edge case ... site setting disabled while guardian instantiated (can help with test cases)
|
||||
SiteSetting.enable_category_group_moderation = false
|
||||
expect(guardian.is_category_group_moderator?(category)).to eq(false)
|
||||
end
|
||||
|
Reference in New Issue
Block a user