2
0
Fork 0
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:
James Kiesel 2014-12-17 01:07:15 +13:00
parent ed54ea6642
commit 84bed4f9ce
4 changed files with 31 additions and 2 deletions

View file

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