Skip to content

Commit

Permalink
Fix method visibility issues in transaction_connection_validator specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Jan 30, 2024
1 parent 15cdea0 commit 35a2922
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/extensions/transaction_connection_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ def post_execute(conn, sql); end
def disconnect_connection(conn)
@sqls << 'disconnect'
end
def connect(server)
@sqls << 'connect'
super
end
private
define_method(:database_error_classes) do
[database_error]
end
def disconnect_error?(e, opts)
e.message.include? 'disconnect'
end
def connect(server)
@sqls << 'connect'
super
end
def log_connection_execute(conn, sql)
res = super
post_execute(conn, sql)
Expand Down

0 comments on commit 35a2922

Please sign in to comment.