can not save category after adding a new custom group
This commit is contained in:
Sam
2013-07-23 10:10:36 +10:00
parent 0acc96c94e
commit 4b269de724
2 changed files with 16 additions and 2 deletions

View File

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