trabajo-afectivo/spec/support/application_handle_info.rb

16 lines
455 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# 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