提交 11f9f556 编写于 作者: J José Valim

Make Orchestra specs run on isolation.

上级 a15e02d4
require 'thread'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'
module ActiveSupport
# Orchestra provides an instrumentation API for Ruby. To instrument an action
......
require "isolation/abstract_unit"
require "active_support/orchestra"
module ApplicationTests
class OrchestraTest < Test::Unit::TestCase
include ActiveSupport::Testing::Isolation
class MyQueue
attr_reader :events, :subscribers
......@@ -25,6 +25,7 @@ def setup
build_app
boot_rails
require "active_support/orchestra"
Rails::Initializer.run do |c|
c.orchestra.queue = MyQueue.new
c.orchestra.subscribe(/listening/) do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册