File tree 1 file changed +2
-2
lines changed
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
1850
1850
# can assert the number of expected isolation level events.
1851
1851
undef_method :assert_begin_isolation_level_event
1852
1852
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/ ) }
1854
1854
1855
1855
index_of_reset_starting_isolation_level_event = isolation_events . index ( "SET TRANSACTION ISOLATION LEVEL READ COMMITTED" )
1856
1856
assert index_of_reset_starting_isolation_level_event . present?
1857
1857
isolation_events . delete_at ( index_of_reset_starting_isolation_level_event )
1858
1858
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 } / ) }
1860
1860
end
1861
1861
end
1862
1862
You can’t perform that action at this time.
0 commit comments