mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
Move logic to reject slugs that are just numbers into the slug module
This commit is contained in:
@ -43,5 +43,13 @@ describe Slug do
|
||||
Slug.for("o_o_o").should == "o-o-o"
|
||||
end
|
||||
|
||||
it "doesn't generate slugs that are just numbers" do
|
||||
Slug.for('123').should be_blank
|
||||
end
|
||||
|
||||
it "doesn't generate slugs that are just numbers" do
|
||||
Slug.for('電車男 2').should be_blank
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user