Sha256: 171f061b245c6db28b4865dda399fc74d1f00d97a08c0f163647b737f121c584
Contents?: true
Size: 641 Bytes
Versions: 10
Compression:
Stored size: 641 Bytes
Contents
require 'octoshark' require 'fileutils' ROOT = File.expand_path('../', File.dirname(__FILE__)) TMP = 'tmp' # Load support files Dir["#{ROOT}/spec/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.include Helpers config.before :suite do FileUtils.mkdir_p(TMP) end config.before :each do ActiveRecord::Base.establish_connection({adapter: 'sqlite3', database: 'tmp/default.sqlite'}) end config.before :each, :mysql2 do config = mysql2_configs[:db1].except(:database) ActiveRecord::Base.establish_connection(config) end config.after :suite do FileUtils.rm_rf(TMP) end end
Version data entries
10 entries across 10 versions & 1 rubygems