Rubocop fix.
[rails.git] / test / models / trace_test.rb
index 1cb94aeef247eb1e3b4b7d28cc1ad4cb1415bc2b..bdc187c993dfd28c9953346d3a959f7041ade3ee 100644 (file)
@@ -196,7 +196,7 @@ class TraceTest < ActiveSupport::TestCase
   private
 
   def check_query(query, traces)
-    traces = traces.map { |t| t.id }.sort
+    traces = traces.map(&:id).sort
     assert_equal traces, query.order(:id).ids
   end