1
0
Fork 0
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:
Aaron Patterson 2011-02-10 14:17:09 -08:00
parent 61b69338b2
commit 339ad0d002
2 changed files with 4 additions and 2 deletions

View file

@ -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?

View file

@ -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