mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: Can't clean a tag if the given string is frozen.
This commit is contained in:
@ -209,7 +209,8 @@ describe DiscourseTagging do
|
||||
|
||||
describe "clean_tag" do
|
||||
it "downcases new tags if setting enabled" do
|
||||
expect(DiscourseTagging.clean_tag("HeLlO")).to eq("hello")
|
||||
expect(DiscourseTagging.clean_tag("HeLlO".freeze)).to eq("hello")
|
||||
|
||||
SiteSetting.force_lowercase_tags = false
|
||||
expect(DiscourseTagging.clean_tag("HeLlO")).to eq("HeLlO")
|
||||
end
|
||||
|
Reference in New Issue
Block a user