Skip to content
Snippets Groups Projects
Commit 0e4c0e78 authored by Katarzyna Kobierska's avatar Katarzyna Kobierska
Browse files

Fix rubocop tests

parent 895ca3a7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -4,7 +4,6 @@ module Ci
before { authenticate! }
 
resources :lint do
post do
begin
response = {}
Loading
Loading
@@ -20,7 +19,7 @@ module Ci
status: "syntax is correct"
}
 
stage_builds = @stages.each do |stage|
@stages.each do |stage|
response["#{stage}"] = @builds.select { |build| build[:stage] == stage }
end
else
Loading
Loading
Loading
Loading
@@ -31,7 +31,7 @@ describe Ci::API::API do
 
context "with invalid .gitlab_ci.yml content" do
it "validate content" do
post ci_api('/lint'), { private_token: user.private_token, content: 'invalid content'}
post ci_api('/lint'), { private_token: user.private_token, content: 'invalid content' }
 
expect(response).to have_http_status(500)
expect(json_response['status']).to eq('syntax is incorrect')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment