FIX: Broken categories controller specs.

This commit is contained in:
Guo Xiang Tan 2015-12-07 00:09:02 +08:00
parent 4ed93eee06
commit 68bfecef8f

View File

@ -219,6 +219,8 @@ describe CategoriesController do
end
it 'logs the changes correctly' do
@category.update!(permissions: { "admins" => CategoryGroup.permission_types[:create_post] })
xhr :put , :update, id: @category.id, name: 'new name',
color: @category.color, text_color: @category.text_color,
slug: @category.slug,