Sha256: a3e5aa70f88a0864ddbb952a021633a960ee1798869ebd7a733adc34c7813545
Contents?: true
Size: 736 Bytes
Versions: 20
Compression:
Stored size: 736 Bytes
Contents
############# ## WARNING ## ############# # THIS TEST SUITE IS VERY MEAN TO MYSQL AND ELASTICSEARCH # IT *WILL* DELETE ANY CONTENT IN THE TEST DBs $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) APP_DIR ||= File.expand_path('../../', __FILE__) require 'forklift' require 'awesome_print' require 'rspec' require 'fileutils' ENV["FORKLIFT_RUN_ALL_STEPS"] = 'true' Dir["#{APP_DIR}/spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:all) do piddir = "#{File.dirname(__FILE__)}/pid" FileUtils.rmdir(piddir) if File.exists?(piddir) SpecSeeds.setup_mysql SpecSeeds.setup_elasticsearch SpecSeeds.setup_csv end end
Version data entries
20 entries across 20 versions & 1 rubygems