Skip to content

Remove around(:context) warning when running specs

Tan Le requested to merge remove-around-context-warning-omniauth into master

What does this MR do?

Remove around(:all) warning when running specs

$ bundle exec spring rspec ee/spec/features/groups/saml_providers_spec.rb:188

WARNING: `around(:context)` hooks are not supported and behave like `around(:example). Called from /Users/tanle/Code/gitlab/gitlab-development-kit/gitlab/spec/support/omniauth_strategy.rb:36:in `block in <main>'.

WARNING: `around(:context)` hooks are not supported and behave like `around(:example). Called from /Users/tanle/Code/gitlab/gitlab-development-kit/gitlab/ee/spec/features/groups/saml_providers_spec.rb:18:in `block in <main>'.

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

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Tan Le

Merge request reports