From 68bfecef8fbb03c6521d395ecc54a48dfdd79404 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 7 Dec 2015 00:09:02 +0800 Subject: [PATCH] FIX: Broken categories controller specs. --- spec/controllers/categories_controller_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/controllers/categories_controller_spec.rb b/spec/controllers/categories_controller_spec.rb index 7eb1def2fb4..d9d9240b544 100644 --- a/spec/controllers/categories_controller_spec.rb +++ b/spec/controllers/categories_controller_spec.rb @@ -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,