mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 08:54:54 +08:00
FIX: case-insensitive category lookup when creating topics
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user