diff options
author | James Lopez <james@jameslopez.es> | 2017-07-05 17:08:31 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-07-06 15:27:48 +0200 |
commit | 5540425ad31ec2ddc61aa56e1e54ad876432d37a (patch) | |
tree | d533805f8c52da0b43451a20fd4070206eae7d5b /spec/requests/api/snippets_spec.rb | |
parent | e68570bacb2d035d5e530042e41d7a8a90ab4da6 (diff) | |
download | gitlab-ce-5540425ad31ec2ddc61aa56e1e54ad876432d37a.tar.gz |
fix spec
Diffstat (limited to 'spec/requests/api/snippets_spec.rb')
-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) |