Can edit category descriptions, they show up in a title
attribute
This commit is contained in:
parent
2d9942ceef
commit
532b1f5450
21 changed files with 268 additions and 103 deletions
spec/controllers
|
@ -192,7 +192,7 @@ describe PostsController do
|
|||
end
|
||||
|
||||
it "calls revise with valid parameters" do
|
||||
Post.any_instance.expects(:revise).with(post.user, 'edited body')
|
||||
PostRevisor.any_instance.expects(:revise!).with(post.user, 'edited body')
|
||||
xhr :put, :update, update_params
|
||||
end
|
||||
|
||||
|
|
Reference in a new issue