spec/spec_helper.rb in rom-sql-1.0.0.rc1 vs spec/spec_helper.rb in rom-sql-1.0.0.rc2
- old
+ new
@@ -37,9 +37,13 @@
ADAPTERS = DB_URIS.keys
PG_LTE_95 = ENV.fetch('PG_LTE_95', 'true') == 'true'
SPEC_ROOT = root = Pathname(__FILE__).dirname
+
+# Redirect inferrer warnings to a log file
+$stderr.reopen(SPEC_ROOT.join('../log/warnings.log'), 'w')
+
TMP_PATH = root.join('../tmp')
Dir[root.join('shared/**/*')].each { |f| require f }
Dir[root.join('support/**/*')].each { |f| require f }