From ea502ac9df868bef953b3595d81aa59c14da07fc Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sat, 29 Oct 2016 17:32:50 +0200 Subject: [PATCH] Rubocop fix. --- test/models/trace_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/models/trace_test.rb b/test/models/trace_test.rb index 1cb94aeef..bdc187c99 100644 --- a/test/models/trace_test.rb +++ b/test/models/trace_test.rb @@ -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 -- 2.39.5