2
0
Fork 0
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:
Sam 2013-06-17 13:43:06 +10:00
parent b97d186cb5
commit 0052e78bfe
5 changed files with 30 additions and 11 deletions

View file

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