1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/test/helper.rb
2017-02-13 16:03:32 -03:00

23 lines
499 B
Ruby

# frozen_string_literal: true
require 'rubygems'
require 'minitest/autorun'
require 'fileutils'
require 'arel'
require 'support/fake_record'
Arel::Table.engine = FakeRecord::Base.new
class Object
def must_be_like other
gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip
end
end
module Arel
class Test < MiniTest::Test
def assert_like expected, actual
assert_equal expected.gsub(/\s+/, ' ').strip,
actual.gsub(/\s+/, ' ').strip
end
end
end