format json better with spaces in my test

This commit is contained in:
Blake Erickson 2018-08-30 14:39:40 -06:00
parent ae532f8548
commit c6f339a0b5
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ describe CategoriesController do
readonly = CategoryGroup.permission_types[:readonly]
post "/categories.json", params: {
name: category.name, color: "ff0", text_color: "fff", permissions: {"invalid_group" => readonly}
name: category.name, color: "ff0", text_color: "fff", permissions: { "invalid_group" => readonly }
}
expect(response.status).to eq(422)