mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Support for non-english categories
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# encoding: utf-8
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
describe Category do
|
||||
@@ -59,6 +61,16 @@ describe Category do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'non-english characters' do
|
||||
|
||||
let(:category) { Fabricate(:category, name: "電車男") }
|
||||
|
||||
it "creates a blank slug, this is OK." do
|
||||
category.slug.should be_blank
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe 'after create' do
|
||||
|
||||
before do
|
||||
|
||||
Reference in New Issue
Block a user