mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fixing tests on 1.8, using a list of lists because order is important
This commit is contained in:
parent
61b69338b2
commit
339ad0d002
2 changed files with 4 additions and 2 deletions
|
@ -28,7 +28,9 @@ module ActiveRecord
|
|||
binds = nil
|
||||
|
||||
unless (payload[:binds] || []).empty?
|
||||
binds = " #{Hash[payload[:binds].map { |col,v| [col.name, v] }]}"
|
||||
binds = " " + payload[:binds].map { |col,v|
|
||||
[col.name, v]
|
||||
}.inspect
|
||||
end
|
||||
|
||||
if odd?
|
||||
|
|
|
@ -84,7 +84,7 @@ module ActiveRecord
|
|||
}.new
|
||||
|
||||
logger.sql event
|
||||
assert_match({pk.name => 10}.inspect, logger.debugs.first)
|
||||
assert_match([[pk.name, 10]].inspect, logger.debugs.first)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue