mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
FIX: use PostDestroyer when deleting/recovering a topic
This commit is contained in:
parent
ee40a95e58
commit
3ae1ebdfc3
8 changed files with 43 additions and 27 deletions
|
@ -36,6 +36,12 @@ shared_examples 'finding and showing post' do
|
|||
xhr :get, action, params
|
||||
response.should be_success
|
||||
end
|
||||
|
||||
it "can find posts as a admin" do
|
||||
log_in(:admin)
|
||||
xhr :get, action, params
|
||||
response.should be_success
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue