Skip to content

Commit 3bd8b8b

Browse files
committed
Fix Rubocop offenses
1 parent 46e18b5 commit 3bd8b8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/support/test_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def assert_queries(num = 1, options = {}) # rubocop:disable Metrics/MethodLength
1111
if num == :any
1212
assert_operator the_log.size, :>=, 1, '1 or more queries expected, but none were executed.'
1313
else
14-
mesg = "#{the_log.size} instead of #{num} queries were executed.#{the_log.size == 0 ? '' : "\nQueries:\n#{the_log.join("\n")}"}"
14+
queries_mesg = the_log.size == 0 ? '' : "\nQueries:\n#{the_log.join("\n")}"
15+
mesg = "#{the_log.size} instead of #{num} queries were executed.#{queries_mesg}"
1516

1617
expect(the_log.size).to eq(num), mesg
1718
end

0 commit comments

Comments
 (0)