mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:24:07 +08:00
format json better with spaces in my test
This commit is contained in:
parent
ae532f8548
commit
c6f339a0b5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user