aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/arel/visitors/depth_first_test.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/visitors/depth_first_test.rb
parent17ca17072dcdff11b3702a6b45f2fb0c8f8fe9a4 (diff)
downloadrails-4c0a3d48804a363c7e9272519665a21f601b5248.tar.gz
rails-4c0a3d48804a363c7e9272519665a21f601b5248.tar.bz2
rails-4c0a3d48804a363c7e9272519665a21f601b5248.zip
Arel: rubocop -a
Diffstat (limited to 'activerecord/test/cases/arel/visitors/depth_first_test.rb')
-rw-r--r--activerecord/test/cases/arel/visitors/depth_first_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/test/cases/arel/visitors/depth_first_test.rb b/activerecord/test/cases/arel/visitors/depth_first_test.rb
index b841d119d2..3baccc7316 100644
--- a/activerecord/test/cases/arel/visitors/depth_first_test.rb
+++ b/activerecord/test/cases/arel/visitors/depth_first_test.rb
@@ -1,11 +1,12 @@
# frozen_string_literal: true
-require_relative '../helper'
+
+require_relative "../helper"
module Arel
module Visitors
class TestDepthFirst < Arel::Test
Collector = Struct.new(:calls) do
- def call object
+ def call(object)
calls << object
end
end
@@ -164,7 +165,7 @@ module Arel
def test_table
relation = Arel::Table.new(:users)
@visitor.accept relation
- assert_equal ['users', relation], @collector.calls
+ assert_equal ["users", relation], @collector.calls
end
def test_array