Commit 652d28f5 authored by Nihad Abbasov's avatar Nihad Abbasov

Merge pull request #1087 from m16a1/patch-1

Fix typo in spec
parents f88a2617 a46a172a
...@@ -78,7 +78,7 @@ describe Gitlab::API do ...@@ -78,7 +78,7 @@ describe Gitlab::API do
end end
describe "DELETE /projects/:id/snippets/:snippet_id" do describe "DELETE /projects/:id/snippets/:snippet_id" do
it "should create a new project snippet" do it "should delete existing project snippet" do
expect { expect {
delete "#{api_prefix}/projects/#{project.code}/snippets/#{snippet.id}?private_token=#{user.private_token}" delete "#{api_prefix}/projects/#{project.code}/snippets/#{snippet.id}?private_token=#{user.private_token}"
}.should change { Snippet.count }.by(-1) }.should change { Snippet.count }.by(-1)
......
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