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-4.4.2 spec/unit/unit_helper.rb
lhm-shopify-4.4.1 spec/unit/unit_helper.rb
lhm-shopify-4.4.0 spec/unit/unit_helper.rb
lhm-shopify-4.3.0 spec/unit/unit_helper.rb
lhm-shopify-4.2.3 spec/unit/unit_helper.rb
lhm-shopify-4.2.2 spec/unit/unit_helper.rb
lhm-shopify-4.2.1 spec/unit/unit_helper.rb
lhm-shopify-4.2.0 spec/unit/unit_helper.rb
lhm-shopify-4.1.1 spec/unit/unit_helper.rb
lhm-shopify-4.1.0 spec/unit/unit_helper.rb
lhm-shopify-4.0.0 spec/unit/unit_helper.rb
lhm-teak-3.6.4 spec/unit/unit_helper.rb
lhm-teak-3.6.3 spec/unit/unit_helper.rb
lhm-teak-3.6.2 spec/unit/unit_helper.rb
lhm-teak-3.6.1 spec/unit/unit_helper.rb
lhm-teak-3.6.0 spec/unit/unit_helper.rb
lhm-shopify-3.5.5 spec/unit/unit_helper.rb
lhm-shopify-3.5.4 spec/unit/unit_helper.rb
lhm-shopify-3.5.3 spec/unit/unit_helper.rb
lhm-shopify-3.5.2 spec/unit/unit_helper.rb