spec/extensions/spec_helper.rb in sequel-3.9.0 vs spec/extensions/spec_helper.rb in sequel-3.10.0
- old
+ new
@@ -43,9 +43,15 @@
def execute(sql, opts={})
@sqls ||= []
@sqls << sql
end
+
+ def new_sqls
+ s = sqls
+ reset
+ s
+ end
def reset
@sqls = []
end