application_handle_info.rb 455 B

123456789101112131415
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. RSpec.configure do |config|
  3. config.around(:each, :application_handle) do |example|
  4. ApplicationHandleInfo.use(example.metadata[:application_handle]) do
  5. example.run
  6. end
  7. end
  8. config.around(:each, :application_handle_context) do |example|
  9. ApplicationHandleInfo.in_context(example.metadata[:application_handle_context]) do
  10. example.run
  11. end
  12. end
  13. end