diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 12:03:52 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 12:03:52 -0700 |
commit | 05b5bb12270b32e094c1c879273e0978dabe5b3b (patch) | |
tree | 24a09e4abc6bdb10e62626577e3c024c10707a19 /test/helper.rb | |
parent | df52f7ca2ffe1dd4fb8e65db352c7bcaacfea1a5 (diff) | |
download | rails-05b5bb12270b32e094c1c879273e0978dabe5b3b.tar.gz rails-05b5bb12270b32e094c1c879273e0978dabe5b3b.tar.bz2 rails-05b5bb12270b32e094c1c879273e0978dabe5b3b.zip |
bind visitor working with collector object
Diffstat (limited to 'test/helper.rb')
-rw-r--r-- | test/helper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/helper.rb b/test/helper.rb index 1292c09a08..6e8ac836fc 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -11,3 +11,12 @@ class Object 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 |