Skip to content
Snippets Groups Projects

Add routes to allow git actions on snippet repositories

All threads resolved!
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -320,7 +320,7 @@
@@ -320,7 +320,7 @@
it 'responds with success' do
it 'responds with success' do
push(key, personal_snippet)
push(key, personal_snippet)
expect(response).to have_gitlab_http_status(200)
expect(response).to have_gitlab_http_status(:ok)
expect(json_response["status"]).to be_truthy
expect(json_response["status"]).to be_truthy
expect(json_response["gl_project_path"]).to eq(personal_snippet.repository.full_path)
expect(json_response["gl_project_path"]).to eq(personal_snippet.repository.full_path)
expect(json_response["gl_repository"]).to eq("snippet-#{personal_snippet.id}")
expect(json_response["gl_repository"]).to eq("snippet-#{personal_snippet.id}")
@@ -332,7 +332,7 @@
@@ -332,7 +332,7 @@
it 'responds with success' do
it 'responds with success' do
pull(key, personal_snippet)
pull(key, personal_snippet)
expect(response).to have_gitlab_http_status(200)
expect(response).to have_gitlab_http_status(:ok)
expect(json_response["status"]).to be_truthy
expect(json_response["status"]).to be_truthy
expect(json_response["gl_project_path"]).to eq(personal_snippet.repository.full_path)
expect(json_response["gl_project_path"]).to eq(personal_snippet.repository.full_path)
expect(json_response["gl_repository"]).to eq("snippet-#{personal_snippet.id}")
expect(json_response["gl_repository"]).to eq("snippet-#{personal_snippet.id}")
@@ -344,7 +344,7 @@
@@ -344,7 +344,7 @@
it 'responds with success' do
it 'responds with success' do
push(key, project_snippet)
push(key, project_snippet)
expect(response).to have_gitlab_http_status(200)
expect(response).to have_gitlab_http_status(:ok)
expect(json_response["status"]).to be_truthy
expect(json_response["status"]).to be_truthy
expect(json_response["gl_project_path"]).to eq(project_snippet.repository.full_path)
expect(json_response["gl_project_path"]).to eq(project_snippet.repository.full_path)
expect(json_response["gl_repository"]).to eq("snippet-#{project_snippet.id}")
expect(json_response["gl_repository"]).to eq("snippet-#{project_snippet.id}")
@@ -356,7 +356,7 @@
@@ -356,7 +356,7 @@
it 'responds with success' do
it 'responds with success' do
pull(key, project_snippet)
pull(key, project_snippet)
expect(response).to have_gitlab_http_status(200)
expect(response).to have_gitlab_http_status(:ok)
expect(json_response["status"]).to be_truthy
expect(json_response["status"]).to be_truthy
expect(json_response["gl_project_path"]).to eq(project_snippet.repository.full_path)
expect(json_response["gl_project_path"]).to eq(project_snippet.repository.full_path)
expect(json_response["gl_repository"]).to eq("snippet-#{project_snippet.id}")
expect(json_response["gl_repository"]).to eq("snippet-#{project_snippet.id}")
Loading