Sha256: c91f34b7319590633b11baa4e2c41dcd0cb2e22b4da45bd81bc1d0183efb1795

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

module NotificationsSupport

  def self.included(base)
    base.class_eval do
      after(:each) do
        ActiveSupport::Notifications.notifier.instance_variable_set(:@subscribers, [])
        ActiveSupport::Notifications.notifier.instance_variable_set(:@listeners_for, {})
      end
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
system-metrics-0.1.0 spec/support/notifications_support.rb