Sha256: 0c2399d98dc185965abd9c8b5ebd5b1a6a737340df41be3cd038e0e682fbdab0

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

# Copyright (c) 2011 - 2013, SoundCloud Ltd., Rany Keddo, Tobias Bielohlawek, Tobias
# Schmidt

require File.expand_path(File.dirname(__FILE__)) + "/../bootstrap"

begin
  require 'active_record'
  begin
    require 'mysql2'
  rescue LoadError
    require 'mysql'
  end
rescue LoadError
  require 'dm-core'
end

module UnitHelper
  def fixture(name)
    File.read $fixtures.join(name)
  end

  def strip(sql)
    sql.strip.gsub(/\n */, "\n")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lhm-2.0.0 spec/unit/unit_helper.rb
lhm-1.3.0 spec/unit/unit_helper.rb
lhm-1.2.0 spec/unit/unit_helper.rb