aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/arel/helper.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2018-02-24 17:15:50 +1030
committerMatthew Draper <matthew@trebex.net>2018-02-24 17:16:13 +1030
commit4c0a3d48804a363c7e9272519665a21f601b5248 (patch)
tree6b1f6e28f85cfd69a0ce534856ef939c7079d5cf /activerecord/test/cases/arel/helper.rb
parent17ca17072dcdff11b3702a6b45f2fb0c8f8fe9a4 (diff)
downloadrails-4c0a3d48804a363c7e9272519665a21f601b5248.tar.gz
rails-4c0a3d48804a363c7e9272519665a21f601b5248.tar.bz2
rails-4c0a3d48804a363c7e9272519665a21f601b5248.zip
Arel: rubocop -a
Diffstat (limited to 'activerecord/test/cases/arel/helper.rb')
-rw-r--r--activerecord/test/cases/arel/helper.rb19
1 files changed, 10 insertions, 9 deletions
diff --git a/activerecord/test/cases/arel/helper.rb b/activerecord/test/cases/arel/helper.rb
index b716ee833f..1f8612f799 100644
--- a/activerecord/test/cases/arel/helper.rb
+++ b/activerecord/test/cases/arel/helper.rb
@@ -1,13 +1,14 @@
# frozen_string_literal: true
-require 'rubygems'
-require 'minitest/autorun'
-require 'arel'
-require_relative 'support/fake_record'
+require "rubygems"
+require "minitest/autorun"
+require "arel"
+
+require_relative "support/fake_record"
class Object
- def must_be_like other
- gsub(/\s+/, ' ').strip.must_equal other.gsub(/\s+/, ' ').strip
+ def must_be_like(other)
+ gsub(/\s+/, " ").strip.must_equal other.gsub(/\s+/, " ").strip
end
end
@@ -24,9 +25,9 @@ module Arel
super
end
- def assert_like expected, actual
- assert_equal expected.gsub(/\s+/, ' ').strip,
- actual.gsub(/\s+/, ' ').strip
+ def assert_like(expected, actual)
+ assert_equal expected.gsub(/\s+/, " ").strip,
+ actual.gsub(/\s+/, " ").strip
end
end