BigW Consortium Gitlab

Commit 5540425a by James Lopez

fix spec

parent e68570ba
...@@ -255,6 +255,7 @@ describe API::Snippets do ...@@ -255,6 +255,7 @@ describe API::Snippets do
end end
describe 'DELETE /snippets/:id' do describe 'DELETE /snippets/:id' do
let!(:public_snippet) { create(:personal_snippet, :public, author: user) }
it 'deletes snippet' do it 'deletes snippet' do
expect do expect do
delete api("/snippets/#{public_snippet.id}", user) 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