summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-01-18 18:45:05 +0100
committerRémy Coutable <remy@rymai.me>2018-01-18 18:45:05 +0100
commit0c2e8ef85763bee34b975bb8df4ed0bda093dcae (patch)
treeed944f7981c5f6e85b58b9c60c60c8e73be11253 /spec/requests
parente56bcf92774b19115f62b609163c44ba9d919e69 (diff)
downloadgitlab-ce-0c2e8ef85763bee34b975bb8df4ed0bda093dcae.tar.gz
Update rubocop, rubocop-rspec, and gitlab-styles42187-update-gitlab-styles-to-2-3-0
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/jobs_spec.rb2
-rw-r--r--spec/requests/api/v3/builds_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb
index e211c347266..4dd8deb6404 100644
--- a/spec/requests/api/jobs_spec.rb
+++ b/spec/requests/api/jobs_spec.rb
@@ -53,7 +53,7 @@ describe API::Jobs do
expect(json_job['pipeline']['status']).to eq job.pipeline.status
end
- it 'avoids N+1 queries', skip_before_request: true do
+ it 'avoids N+1 queries', :skip_before_request do
first_build = create(:ci_build, :artifacts, pipeline: pipeline)
first_build.runner = create(:ci_runner)
first_build.user = create(:user)
diff --git a/spec/requests/api/v3/builds_spec.rb b/spec/requests/api/v3/builds_spec.rb
index cdbc5692e19..af9e36a3b29 100644
--- a/spec/requests/api/v3/builds_spec.rb
+++ b/spec/requests/api/v3/builds_spec.rb
@@ -42,7 +42,7 @@ describe API::V3::Builds do
expect(json_build['pipeline']['status']).to eq build.pipeline.status
end
- it 'avoids N+1 queries', skip_before_request: true do
+ it 'avoids N+1 queries', :skip_before_request do
first_build = create(:ci_build, :artifacts, pipeline: pipeline)
first_build.runner = create(:ci_runner)
first_build.user = create(:user)