Sha256: b89fa3db7b7530d0e5aa5d3e0d0fbf68a75e60ac1d1f36cd68ee588eb80db896
Contents?: true
Size: 517 Bytes
Versions: 7
Compression:
Stored size: 517 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'}) Octoshark.reset! end config.after :suite do FileUtils.rm_rf(TMP) end end
Version data entries
7 entries across 7 versions & 1 rubygems