DEV: Use proper wording for contexts in specs

This commit is contained in:
Loïc Guitaut
2022-07-27 18:14:14 +02:00
committed by Loïc Guitaut
parent 02987e05d5
commit 3eaac56797
337 changed files with 2172 additions and 2723 deletions

View File

@ -106,11 +106,11 @@ RSpec.describe UsernameValidator do
context 'when Unicode usernames are enabled' do
before { SiteSetting.unicode_usernames = true }
context "ASCII usernames" do
context "with ASCII usernames" do
include_examples 'ASCII username'
end
context "Unicode usernames" do
context "with Unicode usernames" do
before { SiteSetting.min_username_length = 1 }
it 'is invalid when the username is too short' do