Remove duplication of params in tests.

This commit is contained in:
Guo Xiang Tan
2018-03-02 09:25:46 +08:00
parent 75172024ca
commit 5c93d07d2a
2 changed files with 1 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ RSpec.describe PostsController do
category.set_permissions(staff: :full)
category.save!
# strange API, why is topic id in here twice
put "/posts/#{post.id}.json", params: {
post: { category_id: category.id, raw: "this is a test edit to post" }
}