aboutsummaryrefslogtreecommitdiffstats
path: root/test/spec_helper.rb
blob: dd288e0d0dfc6b9ab93ed3214c72bb0ebbfeb36e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'rubygems'
require 'minitest/autorun'
require 'fileutils'
require 'arel'

require 'support/fake_record'
Arel::Table.engine = Arel::Sql::Engine.new(FakeRecord::Base.new)

# HACK require 'support/shared/tree_manager_shared'

class Object
  def must_be_like other
    self.gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip
  end

  # TODO: remove
  def check truthiness
    raise "not truthy" unless truthiness
  end
end