Improve comment service spec for limited post the user can't see
closes #7337
This commit is contained in:
parent
436934e890
commit
e3c9e9c9f1
2 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
* Increase time to wait before showing the hovercard [#7319](https://github.com/diaspora/diaspora/pull/7319)
|
* 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)
|
* 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)
|
* 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
|
## Bug fixes
|
||||||
* Fix path to `bundle` in `script/server` [#7281](https://github.com/diaspora/diaspora/pull/7281)
|
* Fix path to `bundle` in `script/server` [#7281](https://github.com/diaspora/diaspora/pull/7281)
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ describe CommentService do
|
||||||
|
|
||||||
it "fail if the user can not see the post" do
|
it "fail if the user can not see the post" do
|
||||||
expect {
|
expect {
|
||||||
CommentService.new(eve).create("unknown id", "hi")
|
CommentService.new(eve).create(post.id, "hi")
|
||||||
}.to raise_error ActiveRecord::RecordNotFound
|
}.to raise_error ActiveRecord::RecordNotFound
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue