diff options
Diffstat (limited to 'test/helper.rb')
-rw-r--r-- | test/helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb new file mode 100644 index 0000000000..3f9ac22447 --- /dev/null +++ b/test/helper.rb @@ -0,0 +1,13 @@ +require 'rubygems' +require 'minitest/autorun' +require 'fileutils' +require 'arel' + +require 'support/fake_record' +Arel::Table.engine = Arel::Sql::Engine.new(FakeRecord::Base.new) + +class Object + def must_be_like other + self.gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip + end +end |