mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:57:15 +08:00
DEV: Use proper wording for contexts in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
02987e05d5
commit
3eaac56797
@ -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
|
||||
|
Reference in New Issue
Block a user