summaryrefslogtreecommitdiff
path: root/spec/requests/api/snippets_spec.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-07-05 17:08:31 +0200
committerJames Lopez <james@jameslopez.es>2017-07-06 15:27:48 +0200
commit5540425ad31ec2ddc61aa56e1e54ad876432d37a (patch)
treed533805f8c52da0b43451a20fd4070206eae7d5b /spec/requests/api/snippets_spec.rb
parente68570bacb2d035d5e530042e41d7a8a90ab4da6 (diff)
downloadgitlab-ce-5540425ad31ec2ddc61aa56e1e54ad876432d37a.tar.gz
fix spec
Diffstat (limited to 'spec/requests/api/snippets_spec.rb')
-rw-r--r--spec/requests/api/snippets_spec.rb1
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)