mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Remove group name validation case sensitivity
This commit is contained in:
parent
ed54ea6642
commit
84bed4f9ce
4 changed files with 31 additions and 2 deletions
|
@ -27,6 +27,12 @@ describe Group do
|
|||
group.name = "this is_a_name"
|
||||
group.valid?.should == false
|
||||
end
|
||||
|
||||
it "is invalid for case-insensitive existing names" do
|
||||
build(:group, name: 'this_is_a_name').save
|
||||
group.name = 'This_Is_A_Name'
|
||||
group.valid?.should == false
|
||||
end
|
||||
end
|
||||
|
||||
def real_admins
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue