Sha256: 6470dba5cf2c95eb09d01b2a1a716cb11771ffab6f9297dc6f03099473c4c5cb
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('..', __dir__) ENV['RACK_ENV'] = 'test' require 'active_record' require 'database_cleaner' require 'slack-ruby-bot-server/rspec' db_config = YAML.load(File.read(File.expand_path('../config/postgresql.yml', __dir__)))[ENV['RACK_ENV']] ActiveRecord::Tasks::DatabaseTasks.create(db_config) ActiveRecord::Base.establish_connection(db_config) RSpec.configure do |config| config.around :each do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-bot-server-0.6.1 | sample_apps/sample_app_activerecord/spec/spec_helper.rb |
slack-ruby-bot-server-0.6.0 | sample_apps/sample_app_activerecord/spec/spec_helper.rb |