application_handle_info.rb 378 B

12345678910111213
  1. RSpec.configure do |config|
  2. config.around(:each, :application_handle) do |example|
  3. ApplicationHandleInfo.use(example.metadata[:application_handle]) do
  4. example.run
  5. end
  6. end
  7. config.around(:each, :application_handle_context) do |example|
  8. ApplicationHandleInfo.in_context(example.metadata[:application_handle_context]) do
  9. example.run
  10. end
  11. end
  12. end