mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 18:38:03 +08:00
can not save category after adding a new custom group
This commit is contained in:
@ -134,4 +134,10 @@ describe Group do
|
||||
GroupUser.count.should == 0
|
||||
end
|
||||
|
||||
it "allows you to lookup a new group by name" do
|
||||
group = Fabricate(:group)
|
||||
group.id.should == Group[group.name].id
|
||||
group.id.should == Group[group.name.to_sym].id
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user