Improve comment service spec for limited post the user can't see

closes #7337
This commit is contained in:
Steffen van Bergerem 2017-02-18 01:53:15 +01:00 committed by Benjamin Neff
parent 436934e890
commit e3c9e9c9f1
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@
* Increase time to wait before showing the hovercard [#7319](https://github.com/diaspora/diaspora/pull/7319)
* Remove some unused color-theme overrides [#7325](https://github.com/diaspora/diaspora/pull/7325)
* Change color of author-name on hover [#7326](https://github.com/diaspora/diaspora/pull/7326)
* Add like and reshare services [#7337](https://github.com/diaspora/diaspora/pull/7337)
## Bug fixes
* Fix path to `bundle` in `script/server` [#7281](https://github.com/diaspora/diaspora/pull/7281)

View file

@ -26,7 +26,7 @@ describe CommentService do
it "fail if the user can not see the post" do
expect {
CommentService.new(eve).create("unknown id", "hi")
CommentService.new(eve).create(post.id, "hi")
}.to raise_error ActiveRecord::RecordNotFound
end
end