]> git.openstreetmap.org Git - rails.git/commitdiff
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 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