Support for non-english categories

This commit is contained in:
Robin Ward
2013-02-14 16:51:48 -05:00
parent d740d7b25f
commit 5d4efa9100
8 changed files with 48 additions and 6 deletions

View File

@@ -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