Commit 38c88bbe authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-replace-before-all-block' into 'master'

Replace before(:all) and before(:context) for screenshots

See merge request gitlab-org/gitlab!17985
parents 333632f1 23b553ee
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
module QA module QA
context 'Manage with IP rate limits', :requires_admin do context 'Manage with IP rate limits', :requires_admin do
describe 'Users API' do describe 'Users API' do
before(:context) do let(:api_client) { Runtime::API::Client.new(:gitlab, ip_limits: true) }
@api_client = Runtime::API::Client.new(:gitlab, ip_limits: true) let(:request) { Runtime::API::Request.new(api_client, '/users') }
end
let(:request) { Runtime::API::Request.new(@api_client, '/users') }
it 'GET /users' do it 'GET /users' do
5.times do 5.times do
......
...@@ -8,7 +8,7 @@ module QA ...@@ -8,7 +8,7 @@ module QA
describe 'Compare archives of different user projects with the same name and check they\'re different' do describe 'Compare archives of different user projects with the same name and check they\'re different' do
include Support::Api include Support::Api
before(:all) do before do
@project_name = "project-archive-download-#{SecureRandom.hex(8)}" @project_name = "project-archive-download-#{SecureRandom.hex(8)}"
@archive_types = %w(tar.gz tar.bz2 tar zip) @archive_types = %w(tar.gz tar.bz2 tar zip)
@users = { @users = {
......
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