Sha256: 9f1fed36a22e1d8c51a3903963e2d659c619970ffc070074fb576b24364f08e1

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

require 'active_support'

module DependencyGrapher
  module TestHelpers
    extend ActiveSupport::Concern
    included do
      @@dependency_logger = DependencyGrapher::Logger.new

      setup do
        @@dependency_logger.enable
      end

      teardown do
        @@dependency_logger.disable
      end

      Minitest.after_run do 
        @@dependency_logger.dump
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dependency_grapher-0.1.1 lib/dependency_grapher/test_helpers.rb
dependency_grapher-0.1.0 lib/dependency_grapher/test_helpers.rb