Sha256: 66ed84507286f9c6d4c5ff56e5a71540e0db80dbc8bee04aea002b84c2458c4a
Contents?: true
Size: 968 Bytes
Versions: 4
Compression:
Stored size: 968 Bytes
Contents
# Allow test to be run in-place without requiring a gem install $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib' # Configure Rails Environment ENV['RAILS_ENV'] = 'test' require 'minitest/autorun' require 'minitest/reporters' require 'minitest/stub_any_instance' require 'semantic_logger' # require 'logger' require_relative 'in_memory_appender' require_relative 'in_memory_batch_appender' require_relative 'in_memory_metrics_appender' require_relative 'in_memory_appender_helper' require 'awesome_print' # Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new class Minitest::Test # Use AwesomePrint to display diffs define_method :mu_pp, &:awesome_inspect # Use AwesomePrint to display messages def message(msg = nil, ending = nil) proc { msg = msg.call.chomp('.') if Proc === msg custom_message = "#{msg.ai}.\n" unless msg.nil? || msg.to_s.empty? "#{custom_message}#{yield}#{ending || '.'}" } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
semantic_logger-4.3.1 | test/test_helper.rb |
semantic_logger-4.3.0 | test/test_helper.rb |
semantic_logger-4.2.2 | test/test_helper.rb |
semantic_logger-4.2.1 | test/test_helper.rb |