Commit 5540425a authored by James Lopez's avatar James Lopez

fix spec

parent e68570ba
......@@ -255,6 +255,7 @@ describe API::Snippets do
end
describe 'DELETE /snippets/:id' do
let!(:public_snippet) { create(:personal_snippet, :public, author: user) }
it 'deletes snippet' do
expect do
delete api("/snippets/#{public_snippet.id}", user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment