File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1850,13 +1850,13 @@ class TransactionIsolationTest < ActiveRecord::TestCase
18501850 # can assert the number of expected isolation level events.
18511851 undef_method :assert_begin_isolation_level_event
18521852 def assert_begin_isolation_level_event ( events , isolation : "READ COMMITTED" )
1853- isolation_events = events . select { _1 . match ( /SET TRANSACTION ISOLATION LEVEL/ ) }
1853+ isolation_events = events . select { | event | event . match ( /SET TRANSACTION ISOLATION LEVEL/ ) }
18541854
18551855 index_of_reset_starting_isolation_level_event = isolation_events . index ( "SET TRANSACTION ISOLATION LEVEL READ COMMITTED" )
18561856 assert index_of_reset_starting_isolation_level_event . present?
18571857 isolation_events . delete_at ( index_of_reset_starting_isolation_level_event )
18581858
1859- assert_equal 1 , isolation_events . select { _1 . match ( /SET TRANSACTION ISOLATION LEVEL #{ isolation } / ) } . size
1859+ assert_equal 1 , isolation_events . count { | event | event . match ( /SET TRANSACTION ISOLATION LEVEL #{ isolation } / ) }
18601860 end
18611861end
18621862
You can’t perform that action at this time.
0 commit comments