spec/spec_helper.rb in simple-sql-0.4.37 vs spec/spec_helper.rb in simple-sql-0.4.38
- old
+ new
@@ -12,10 +12,12 @@
Dir.glob("./spec/support/**/*.rb").sort.each { |path| load path }
require "simple/sql"
unless ENV["USE_ACTIVE_RECORD"]
- Simple::SQL.connect!
+ database_url = Simple::SQL::Config.determine_url
+
+ Simple::SQL.connect! database_url
Simple::SQL.ask "DELETE FROM users"
end
SQL = Simple::SQL
USER_COUNT = 2