DEV: Fix random typos (#22345)

This commit is contained in:
Jarek Radosz
2023-06-29 12:23:28 +02:00
committed by GitHub
parent b61ea8e16d
commit 3290c954f9
5 changed files with 7 additions and 7 deletions

View File

@ -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