Rubocop fix.
authorAndy Allan <git@gravitystorm.co.uk>
Sat, 29 Oct 2016 15:32:50 +0000 (17:32 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Sat, 29 Oct 2016 15:32:50 +0000 (17:32 +0200)
test/models/trace_test.rb

index 1cb94ae..bdc187c 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