aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/connections/sqlite3_connection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/connections/sqlite3_connection.rb')
-rw-r--r--spec/support/connections/sqlite3_connection.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/support/connections/sqlite3_connection.rb b/spec/support/connections/sqlite3_connection.rb
deleted file mode 100644
index 4c8627c795..0000000000
--- a/spec/support/connections/sqlite3_connection.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-puts "Using native SQLite3"
-require "active_record"
-require 'logger'
-
-ENV['ADAPTER'] = 'sqlite3'
-
-db_file = "spec/support/fixtures/fixture_database.sqlite3"
-
-ActiveRecord::Base.configurations = {
- "unit" => {
- :adapter => 'sqlite3',
- :database => db_file,
- :timeout => 5000
- }
-}
-
-unless File.exist?(db_file)
- puts "SQLite3 database not found at #{db_file}. Rebuilding it."
- require 'fileutils'
- FileUtils.mkdir_p(File.dirname(db_file))
- sqlite_command = %Q{sqlite3 "#{db_file}" "create table a (a integer); drop table a;"}
- puts "Executing '#{sqlite_command}'"
- raise "Seems that there is no sqlite3 executable available" unless system(sqlite_command)
-end