FIX: use PostDestroyer when deleting/recovering a topic

This commit is contained in:
Régis Hanol
2014-08-07 19:12:35 +02:00
parent ee40a95e58
commit 3ae1ebdfc3
8 changed files with 43 additions and 27 deletions

View File

@ -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