test/test_timestamps.rb in swift-0.7.2 vs test/test_timestamps.rb in swift-0.8.0
- old
+ new
@@ -42,11 +42,10 @@
else
"select '%s'::timestamp with time zone as now"
end
sql = sql % value.strftime('%F %T' + zone)
- @db.execute(sql)
- @db.results.first.fetch(:now)
+ @db.execute(sql).first.fetch(:now)
end
def assert_timestamp_like expect, given, comment
match = Regexp.new expect.to_time.strftime('%F %T')
assert_kind_of Time, given