trabajo-afectivo/spec/support/application_handle_info.rb
2022-01-01 14:38:12 +01:00

15 lines
455 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
RSpec.configure do |config|
config.around(:each, :application_handle) do |example|
ApplicationHandleInfo.use(example.metadata[:application_handle]) do
example.run
end
end
config.around(:each, :application_handle_context) do |example|
ApplicationHandleInfo.in_context(example.metadata[:application_handle_context]) do
example.run
end
end
end