helper.rb 293 B

12345678910111213
  1. require 'rubygems'
  2. require 'minitest/autorun'
  3. require 'fileutils'
  4. require 'arel'
  5. require 'support/fake_record'
  6. Arel::Table.engine = Arel::Sql::Engine.new(FakeRecord::Base.new)
  7. class Object
  8. def must_be_like other
  9. gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip
  10. end
  11. end