Commit 45e92f65 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'remove-around-context-warning-omniauth' into 'master'

Remove around(:context) warning when running specs

See merge request gitlab-org/gitlab!61222
parents a6866652 15850970
......@@ -17,7 +17,7 @@ RSpec.describe 'SAML provider settings' do
stub_saml_config
end
around(:all) do |example|
around do |example|
with_omniauth_full_host { example.run }
end
......
......@@ -18,7 +18,7 @@ RSpec.describe 'Group SAML SSO', :js do
Hash[*saml_response.attributes.to_h.flatten(2)]
end
around(:all) do |example|
around do |example|
with_omniauth_full_host { example.run }
end
......
......@@ -207,7 +207,7 @@ RSpec.describe 'Login' do
stub_licensed_features(group_saml: true)
end
around(:all) do |example|
around do |example|
with_omniauth_full_host { example.run }
end
......
......@@ -18,7 +18,7 @@ RSpec.describe 'OAuth Login', :js, :allow_forgery_protection do
providers = [:github, :twitter, :bitbucket, :gitlab, :google_oauth2,
:facebook, :cas3, :auth0, :authentiq, :salesforce]
around(:all) do |example|
around do |example|
with_omniauth_full_host { example.run }
end
......
......@@ -102,7 +102,7 @@ RSpec.describe Types::GlobalIDType do
end
context 'with a deprecation' do
around(:all) do |example|
around do |example|
# Unset all previously memoized GlobalIDTypes to allow us to define one
# that will use the constants stubbed in the `before` block.
previous_id_types = Types::GlobalIDType.instance_variable_get(:@id_types)
......
......@@ -29,7 +29,7 @@ end
RSpec.configure do |config|
config.include StrategyHelpers, type: :strategy
config.around(:all, type: :strategy) do |example|
config.around(type: :strategy) do |example|
StrategyHelpers.without_test_mode do
example.run
end
......
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