diff options
author | Jonathan Viney <jonathan.viney@gmail.com> | 2008-08-31 22:34:54 +1200 |
---|---|---|
committer | Hongli Lai (Phusion) <hongli@phusion.nl> | 2008-11-03 20:55:40 +0100 |
commit | 3f4a8b6d0a6c1ddab417b8d19affdc1e9f9209ba (patch) | |
tree | fd04d75b2f7ba3a7d59fd1dc124c3485a21040a2 /activerecord/test | |
parent | b1b204abbb6d010284120598aec30cf5dcd096f6 (diff) | |
download | rails-3f4a8b6d0a6c1ddab417b8d19affdc1e9f9209ba.tar.gz rails-3f4a8b6d0a6c1ddab417b8d19affdc1e9f9209ba.tar.bz2 rails-3f4a8b6d0a6c1ddab417b8d19affdc1e9f9209ba.zip |
Fix assert_queries failures by ignoring savepoint sql.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index f7bdac8013..0c03d29dec 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -31,7 +31,7 @@ rescue LoadError end ActiveRecord::Base.connection.class.class_eval do - IGNORED_SQL = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/] + IGNORED_SQL = [/^PRAGMA/, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/, /^SAVEPOINT/, /^ROLLBACK TO SAVEPOINT/, /^RELEASE SAVEPOINT/] def execute_with_query_record(sql, name = nil, &block) $queries_executed ||= [] |