mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
12 lines
309 B
Ruby
12 lines
309 B
Ruby
require 'sequel'
|
|
require 'database_cleaner/spec/database_helper'
|
|
|
|
class SequelHelper < DatabaseCleaner::Spec::DatabaseHelper
|
|
private
|
|
|
|
def establish_connection(config = default_config)
|
|
url = "#{db}:///"
|
|
url = "sqlite:///" if db == :sqlite3
|
|
@connection = ::Sequel.connect(url, config)
|
|
end
|
|
end
|