fix topics controller test

This commit is contained in:
Devin Howard 2016-03-14 11:40:23 +08:00
parent ee0ca3ba35
commit 7716462c8f

View file

@ -95,7 +95,7 @@ RSpec.describe TopicsController, type: :controller do
end
it 'return 204 NO CONTENT' do
delete :destroy, { id: topic.to_param, format: :json }
delete :destroy, { id: owned_topic.to_param, format: :json }
expect(response.status).to eq 204
end
end