Sha256: 730832d0af44dc31983a820fde6181bcb5b909d6f7c48b0f6cbe3bbcea29efc9
Contents?: true
Size: 562 Bytes
Versions: 24
Compression:
Stored size: 562 Bytes
Contents
# Copyright (c) 2011 - 2013, SoundCloud Ltd., Rany Keddo, Tobias Bielohlawek, Tobias # Schmidt require 'test_helper' module UnitHelper LOG_EXPRESSION = /([\w]+),\s+\[([^\]\s]+)\s+#([^\]]+)]\s+(\w+)\s+--\s+(\w+)?:\s+(.+)/ def fixture(name) File.read $fixtures.join(name) end def strip(sql) sql.strip.gsub(/\n */, "\n") end def log_expression_message(msg) msg.gsub(LOG_EXPRESSION) do |match| severity = $1 date = $2 pid = $3 label = $4 app = $5 message = $6 end end end
Version data entries
24 entries across 24 versions & 2 rubygems
Version | Path |
---|---|
lhm-shopify-3.5.0 | spec/unit/unit_helper.rb |
lhm-shopify-3.5.1 | spec/unit/unit_helper.rb |
lhm-shopify-3.4.2 | spec/unit/unit_helper.rb |
lhm-shopify-3.4.1 | spec/unit/unit_helper.rb |