diff options
author | James Lopez <james@jameslopez.es> | 2017-07-05 17:08:31 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-07-05 17:08:31 +0200 |
commit | 243abd71a958e6acee52118e6616aa6994b47fe4 (patch) | |
tree | 48931f7cff7b9dcb12fbf7609aefabfe11e4e9b5 | |
parent | 899cba88179afe89217a8799ae85b660356a34bc (diff) | |
download | gitlab-ce-243abd71a958e6acee52118e6616aa6994b47fe4.tar.gz |
fix spec
-rw-r--r-- | spec/requests/api/snippets_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/snippets_spec.rb b/spec/requests/api/snippets_spec.rb index f43b932e30a..8bf6dadd86e 100644 --- a/spec/requests/api/snippets_spec.rb +++ b/spec/requests/api/snippets_spec.rb @@ -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) |