Commit 15850970 authored by Tan Le's avatar Tan Le

Remove around(:all) warning when running specs

`around(:all)` is not supported by `rspec_core` and will be removed in
future release.

Related upstream change https://github.com/rspec/rspec-core/pull/2687
parent b9771818
......@@ -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