mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
render error when people attempt to save an invalid group name
hide controls when we showing an automatic group
This commit is contained in:
parent
b97d186cb5
commit
0052e78bfe
5 changed files with 30 additions and 11 deletions
|
@ -14,6 +14,11 @@ describe Group do
|
|||
group.name = "this_is_a_name"
|
||||
group.valid?.should be_true
|
||||
end
|
||||
|
||||
it "is invalid for non names" do
|
||||
group.name = "this is_a_name"
|
||||
group.valid?.should be_false
|
||||
end
|
||||
end
|
||||
|
||||
it "Can update moderator/staff/admin groups correctly" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue