FIX: case-insensitive category lookup when creating topics

This commit is contained in:
Neil Lalonde
2014-08-18 11:07:32 -04:00
parent 6c10cc3788
commit 1445ad61da
5 changed files with 30 additions and 1 deletions

View File

@ -148,6 +148,10 @@ describe Category do
Fabricate(:category, name: " blanks ").name.should == "blanks"
end
it "sets name_lower" do
Fabricate(:category, name: "Not MySQL").name_lower.should == "not mysql"
end
it "has custom fields" do
category = Fabricate(:category, name: " music")
category.custom_fields["a"].should == nil